04.05.2013, 13:37
When someone dies (OnPlayerDeath) I get array index out of bounds from crash detect.
I think it comes from this piece of code:
But I'm not sure what's causing it.
I think it comes from this piece of code:
pawn Код:
if(IsPlayerCivilianClass(killerid) || gTeam[killerid] == MECHANIC || gTeam[killerid] == HITMAN) {
WantedLevel[killerid]+=4;
CallLocalFunction("OnPlayerCommitCrime", "iis", killerid, WantedLevel[killerid], "Killed a player");
format(G_String, 128, "[CRIME] %s has killed %s", PlayerName(killerid), PlayerName(playerid));
SendClientMessageToAll(COLOR_SKYBLUE, G_String);
format(G_String, 128, "[CRIME COMMITED] %s has murdered %s Location: %s Wanted Level: %d", PlayerName(killerid), PlayerName(playerid), PlayerZone(killerid), WantedLevel[killerid]);
SendMessageToLaw(COLOR_BLUE1, G_String);
}