invite command
#9

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:
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
}
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.
Reply


Messages In This Thread
invite command - by kbalor - 19.10.2013, 13:24
Re: invite command - by Patrick - 19.10.2013, 13:43
Re: invite command - by kbalor - 19.10.2013, 14:00
Re: invite command - by Patrick - 19.10.2013, 14:08
Re: invite command - by kbalor - 19.10.2013, 14:13
Re: invite command - by Patrick - 19.10.2013, 14:18
Re: invite command - by Patrick - 19.10.2013, 14:41
Re: invite command - by kbalor - 19.10.2013, 14:54
Re: invite command - by Konstantinos - 19.10.2013, 14:58
Re: invite command - by Patrick - 19.10.2013, 14:59

Forum Jump:


Users browsing this thread: 4 Guest(s)