Quote:
Originally Posted by Black Wolf
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { PlayerInfo[killerid][Kills]++; return 1; }
|
Basically, when you suicide, you're crashing the callback right away with a run time error "index out of bounds", as killerid value equals INVALID_PLAYER_ID, which value is 0xFFFF (65535 in decimal system): quite FAR from playerid 499 isn't it?
Do the check "if (killerid!=INVALID_PLAYER_ID)" before doing ANYTHING with killerid, really.