Jump to content
Sign in to follow this  
cervantes

size: tex/ not an array

Recommended Posts

hi all i have found one solution for add a team of ANN news on civil side but when i place my reporter on map i launch editor and i have this error

size: tex/ not an array

i relaunch and its good help me please for fix this error.

Share this post


Link to post
Share on other sites
Guest RKSL-Rock
hi all i have found one solution for add a team of ANN news on civil side but when i place my reporter on map i launch editor and i have this error

size: tex/ not an array

i relaunch and its good help me please for fix this error.

Its a config error.  Find the line liek the one shown below:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">tex = {X,Y,Z};

You need add a square bracket to the line like so:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">tex [] = {X,Y,Z};

And it will work.

Share this post


Link to post
Share on other sites

thx man for you intervention i have test this and i have always this error my config has on cpp

#define OPFOR 0

#define BLUFOR 1

#define independant 2

#define Civilian 3

class CfgPatches

{

class ANN_Press

{

units[] = {};

weapons[] = {};

requiredVersion = 0.100000;

requiredAddons[] = {};

};

};

class CfgVehicleClasses

{

class ANN_Press

{

displayName = "ANN_Press";

};

};

class CfgVehicles

{

/*extern*/ class SoldierWB;

class PR_FieldReporter_1: SoldierWB

{

side=3;

moves = "CfgMovesMaleSdr";

model = "\ca\characters\civil_pressmanik";

weapons[] = {"Throw", "Put"};

magazines[] = {};

vehicleClass = "ANN_Press";

displayName = "ANN FieldReporter_1";

class Wounds {

tex = {X,Y,Z};

mat = {"ca\characters\data\civil_1_tshirt_shorts_klapky_hhl.rvmat", "ca\characters\data\pressmanik_hhl_wound1.rvmat", "ca\characters\data\pressmanik_hhl_wound2.rvmat", "ca\characters\data\pressmanik.rvmat", "ca\characters\data\pressmanik_wound1.rvmat", "ca\characters\data\pressmanik_wound2.rvmat"};

};

};

class PR_FieldReporter_2: PR_FieldReporter_1

{

woman = true;

model = "\ca\characters\MarianQuandt";

displayName = "MarianQuandt";

class Wounds {

tex = {X,Y,Z};

mat = {"ca\characters\data\civil_1_tshirt_shorts_klapky_hhl.rvmat", "ca\characters\data\pressmanik_hhl_wound1.rvmat", "ca\characters\data\pressmanik_hhl_wound2.rvmat", "ca\characters\data\pressmanik.rvmat", "ca\characters\data\pressmanik_wound1.rvmat", "ca\characters\data\pressmanik_wound2.rvmat"};

};

};

class PR_FieldReporter_3: PR_FieldReporter_1

{

model = "\ca\characters\civil_tvreport";

displayName = "ANN FieldTVReporter";

class Wounds {

tex = {X,Y,Z};

mat = {"ca\characters\data\hhl_tvreport.rvmat", "ca\characters\data\hhl_tvreport_wound1.rvmat", "ca\characters\data\hhl_tvreport_wound2.rvmat", "ca\characters\data\tvreport.rvmat", "ca\characters\data\tvreport_wound1.rvmat", "ca\characters\data\tvreport_wound2.rvmat"};

};

};

class PR_FieldReporter_4: PR_FieldReporter_1

{

woman = true;

model = "\ca\characters\MarianQuandt02";

displayName = "MarianQuandt02";

class Wounds {

tex = {X,Y,Z};

mat = {"ca\characters\data\civil_1_tshirt_shorts_klapky_hhl.rvmat", "ca\characters\data\pressmanik_hhl_wound1.rvmat", "ca\characters\data\pressmanik_hhl_wound2.rvmat", "ca\characters\data\pressmanik.rvmat", "ca\characters\data\pressmanik_wound1.rvmat", "ca\characters\data\pressmanik_wound2.rvmat"};

};

};

class PR_FieldReporter_5: PR_FieldReporter_1

{

woman = true;

model = "\ca\characters\MarianQuandt03";

displayName = "MarianQuandt03";

class Wounds {

tex = {X,Y,Z};

mat = {"ca\characters\data\civil_1_tshirt_shorts_klapky_hhl.rvmat", "ca\characters\data\pressmanik_hhl_wound1.rvmat", "ca\characters\data\pressmanik_hhl_wound2.rvmat", "ca\characters\data\pressmanik.rvmat", "ca\characters\data\pressmanik_wound1.rvmat", "ca\characters\data\pressmanik_wound2.rvmat"};

};

};

class PR_FieldReporter_6: PR_FieldReporter_1

{

woman = true;

model = "\ca\characters\MarianQuandt04";

displayName = "MarianQuandt04";

class Wounds {

tex = {X,Y,Z};

mat = {"ca\characters\data\civil_1_tshirt_shorts_klapky_hhl.rvmat", "ca\characters\data\pressmanik_hhl_wound1.rvmat", "ca\characters\data\pressmanik_hhl_wound2.rvmat", "ca\characters\data\pressmanik.rvmat", "ca\characters\data\pressmanik_wound1.rvmat", "ca\characters\data\pressmanik_wound2.rvmat"};

};

};

its good no?

Share this post


Link to post
Share on other sites

yeeees i have found i have just delete wounds lines and its ok

Share this post


Link to post
Share on other sites
Guest RKSL-Rock
yeeees i have found i have just delete wounds lines and its ok

Glad it works for you but you seem to have taken my post a bit too literally.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">tex = {X,Y,Z};

The X,Y,Z part is to represent the content of the array! So X will be a texture name, so will Y and Z!

If you just put X,Y,Z instead of the textures that will cause you more problems! You only need to add the square brackets!

Share this post


Link to post
Share on other sites
Guest RKSL-Rock
ok i understand now  tounge2.gif  its my bad english im french

No problem. Glad I could help.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×