17.03.2017, 23:30
Quote:
killerid returns INVALID_PLAYER_ID if playerid died by itself (falling)
INVALID_PLAYER_ID is defined as 65535. You're trying to put the 65535 value inside your (i guess) MAX_PLAYERS array, it does not have space to be there. You should add a check in order for this to not happen: Код:
if(killerid == INVALID_PLAYER_ID) return 1; |
PHP код:
if(killerid != INVALID_PLAYER_ID)
{
Kills[killerid]++; //example
}
//Rest of the code where killerid isn't involved.