13.07.2014, 13:40
Ignore the above comment.
The problem is in OnPlayerDeath callback. The killerid is INVALID_PLAYER_ID (65535) so that means that the player died himself and you used "killerid" in array(s) which is out of bounds (that index). The line is 10617 but you can fix it easier by doing this:
The problem is in OnPlayerDeath callback. The killerid is INVALID_PLAYER_ID (65535) so that means that the player died himself and you used "killerid" in array(s) which is out of bounds (that index). The line is 10617 but you can fix it easier by doing this:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if (killerid != INVALID_PLAYER_ID)
{
// code..
// here you can use "killerid" in arrays and to send them messages/gametext, give money/score or whatever
}
return 1;
}