19.10.2013, 14:58
Line 15488 from JLadmin.pwn please.
The one you passed in [ ] is INVALID_PLAYER_ID (65535) where the max value it expected was 499 (declared as MAX_PLAYERS).
So check that variable, something like:
PS: Nothing was wrong with char, the runtime error was caused by command /vinvite. By the way, when char is used, it can only get 0-255. Any value out of bounds will be changed.
The one you passed in [ ] is INVALID_PLAYER_ID (65535) where the max value it expected was 499 (declared as MAX_PLAYERS).
So check that variable, something like:
pawn Код:
if( variable_name_here != INVALID_PLAYER_ID )
{
// variable_name_here is the one was set to INVALID_PLAYER_ID and it got passed into the index.
// now you can insert that variable into array
}