Arrays
#1

Hey guys,

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 }
};
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:
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
Anyone could give me a hand with this?

~Wesley
Reply


Messages In This Thread
Arrays - by Wesley221 - 01.02.2012, 08:30
Re: Arrays - by T0pAz - 01.02.2012, 08:32
Re: Arrays - by Wesley221 - 01.02.2012, 08:36
Re: Arrays - by T0pAz - 01.02.2012, 08:49
Re: Arrays - by [Diablo] - 01.02.2012, 08:50
Re: Arrays - by Wesley221 - 01.02.2012, 08:53

Forum Jump:


Users browsing this thread: 4 Guest(s)