11.03.2016, 21:00
Код:
[23:57:24] [debug] Run time error 4: "Array index out of bounds" [23:57:24] [debug] Accessing element at index 65535 past array upper bound 49 [23:57:24] [debug] AMX backtrace: [23:57:24] [debug] #0 0001d4c0 in ?? (0, 65535, 255) from TDM.amx [23:57:24] [debug] #1 00005718 in public OnPlayerDeath (0, 65535, 255) from TDM.amx
Код:
public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); pInfo[playerid][pDeath] ++; pInfo[killerid][pKills] ++; if(pInfo[killerid][pKills] % 50 == 0) { pInfo[killerid][pLevel] ++; SendFormatMessageToAll(-1, "{FFBB11}.%d щтмд мшод {838383}%s(ID:%02d) {FFBB11}ожм иеб мщзчп", pInfo[killerid][pLevel], GetName(killerid), killerid); } if(gTeam[killerid] == COPS) { CopsKills ++; format(zString, sizeof(zString), "Cops Score: %d", CopsKills); TextDrawSetString(CopsScore[playerid], zString); } if(gTeam[killerid] == TERRORIST) { TerroristsKills ++; format(zString, sizeof(zString), "Terrorist Score: %d", CopsKills); TextDrawSetString(TerroristsScore[playerid], zString); } return 1; }