09.07.2013, 15:27
You need to debug your code, from a fast look I did not see anything strange.
By the way, those arrays you have created are you really sure that they have the size of "MAX_PLAYERS"? Because if you did for example:
By the way, those arrays you have created are you really sure that they have the size of "MAX_PLAYERS"? Because if you did for example:
pawn Код:
// MAX_PLAYERS = 100
new Something[ MAX_PLAYERS ][ Something_enum ];
new Something2[ 80 ][ Something2_enum ];
// Somewhere:
for(new i = 0; i < MAX_PLAYERS; i++ )
{
Something[ i ][ blabla ] = 0;
Something2[ i ][ blablabla ] = 1; // When "i" will be 80: "Array index out of bounds"
}

