SA-MP Forums Archive
CrashDetect Plugin help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CrashDetect Plugin help (/showthread.php?tid=362080)



CrashDetect Plugin help - Aloushi - 23.07.2012

how to fix this

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
        SInfo[killerid][pKills]++;
        SInfo[playerid][pDeaths]++;
        SendDeathMessage(killerid, playerid, reason);
        return 1;
}

Код:
[02:10:56] [debug] Run time error 4: "Array index out of bounds"
[02:10:56] [debug]  Accessing element at index 65535 past array upper bound 31
[02:10:56] [debug] AMX backtrace:
[02:10:56] [debug] #0 00020880 in public OnPlayerDeath () from gadmin.amx
[02:10:56] [death] [HSF]Faour died 54
[02:11:23] [debug] Run time error 4: "Array index out of bounds"
[02:11:23] [debug]  Accessing element at index 65535 past array upper bound 31
[02:11:23] [debug] AMX backtrace:
[02:11:23] [debug] #0 00020880 in public OnPlayerDeath () from gadmin.amx
[02:11:23] [death] [HSF]Faour died 54



Re: CrashDetect Plugin help - RedJohn - 23.07.2012

pawn Код:
SInfo[killerid][pKills] ++;
SInfo[playerid][pDeaths] ++;



Re: CrashDetect Plugin help - Aloushi - 23.07.2012

Quote:
Originally Posted by RedJohn
Посмотреть сообщение
pawn Код:
SInfo[killerid][pKills] ++;
SInfo[playerid][pDeaths] ++;
fail

Код:
[13:42:52] [debug] Run time error 4: "Array index out of bounds"
[13:42:52] [debug]  Accessing element at index 65535 past array upper bound 31
[13:42:52] [debug] AMX backtrace:
[13:42:52] [debug] #0 00020980 in public OnPlayerDeath () from gadmin.amx
[13:42:52] [death] [HSF]Faour died 54



Re: CrashDetect Plugin help - Aloushi - 23.07.2012

cmon guys help me


Re: CrashDetect Plugin help - Vince - 23.07.2012

pawn Код:
if(killerid != INVALID_PLAYER_ID)