02.09.2016, 20:03
Код:
[21:57:52] [debug] Run time error 4: "Array index out of bounds" [21:57:52] [debug] Accessing element at index 63 past array upper bound 62 [21:57:52] [debug] AMX backtrace: [21:57:52] [debug] #0 0003706c in ?? (0) from dayz.amx [21:57:52] [debug] #1 00046024 in ?? (0) from dayz.amx [21:57:52] [debug] #2 00025f94 in ?? (0, 65535, 255) from dayz.amx [21:57:52] [debug] #3 00013a40 in public OnPlayerDeath (0, 65535, 255) from dayz.amx
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
if(killerid != INVALID_PLAYER_ID)
{
SetPlayerBandit(killerid);
PlayerInfo[killerid][pKills]++;
}
PlayerInfo[playerid][pDeaths]++;
PlayerInfo[playerid][pFirstSpawn] = 0;
ResetAllInfo(playerid);
ForceDrop(playerid);
return 1;
}