21.02.2009, 16:20
This part of code will crash your script when players kill themself because if they /kill or whatever that kill themself, killerid is set to INVALID_PLAYER_ID, which is defined 255 so will produce an out of memory bounds error as you try to modify an inexisting memory address (killer[255])
fix:
fix:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
killed[playerid]++;
if (killerid != INVALID_PLAYER_ID)
killer[killerid]++;
return 1;
}

