08.04.2013, 14:01
It looks as-if your not checking if "killerid" is INVALID_PLAYER_ID under OnPlayerDeath and then using "killerid" as an index to an array.
EG,
Could be something else but thats what i think it is.
EG,
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
//imagine player did /kill command (or equivalent)
//killerid would be equal to INVALID_PLAYER_ID which is 65536 (0xFFFF)
//then this
gPlayerData[ killerid ][ kills ]++;
//is the same as this
gPlayerData[ 65536 ][ kills ]++;
return 1;
}