01.02.2012, 08:30
Hey guys,
I got a little problem with an array. When i want to loop through a array, it gives me some errors.
The arrays are filled, just like that. Only the x, y, z are floats, and the i is an integer. Im trying (for now) only to get the 'name' out of the array.
Those are the errors im getting:
Anyone could give me a hand with this?
~Wesley
I got a little problem with an array. When i want to loop through a array, it gives me some errors.
pawn Code:
for( new i = 0; i < 4; i ++ ) // NOTE: tried it with i < 4, aswell with i < 5
{
strcat( pString, Rank1Array[i][0] );
}
new Rank1Array[][5] =
{
{ "name", x, y, z, i }, // line 277
{ "name", x, y, z, i },
{ "name", x, y, z, i },
{ "name", x, y, z, i },
{ "name", x, y, z, i }
};
Those are the errors im getting:
Code:
C:\Users\Wesley\Desktop\Samp\gamemodes\NEBEy_ini.pwn(277) : warning 213: tag mismatch C:\Users\Wesley\Desktop\Samp\gamemodes\NEBEy_ini.pwn(277) : warning 213: tag mismatch C:\Users\Wesley\Desktop\Samp\gamemodes\NEBEy_ini.pwn(277) : warning 213: tag mismatch C:\Users\Wesley\Desktop\Samp\gamemodes\NEBEy_ini.pwn(277) : error 018: initialization data exceeds declared size
~Wesley