SA-MP Forums Archive
Unknown crashdetect - Errors - 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: Unknown crashdetect - Errors (/showthread.php?tid=462815)



Unknown crashdetect - Errors - Skimmer - 08.09.2013

Okay, I get this, when someone leaves the server.

Код:
[18:12:20] [part] Skimmer has left the server (10:1)
[18:12:20] [debug] #1  00007984 in OnPlayerDisconnect () from DM.amx
[18:12:20] [debug] #0  0001815c in g_OnPlayerDisconnect () from DM.amx
[18:12:20] [debug] Backtrace (most recent call first):
[18:12:20] [debug]   Accessing element at negative index -1
[18:12:20] [debug] Run time error 4: "Array index out of bounds"
I have an include that contains hook. It looks so.

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    // Functions
    return CallLocalFunction("g_OnPlayerDisconnect", "ii", playerid, reason);
}

#if defined _ALS_OnPlayerDisconnect
    #undef OnPlayerDisconnect
#else
    #define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect g_OnPlayerDisconnect
forward g_OnPlayerDisconnect(playerid, reason);



AW: Unknown crashdetect - Errors - Skimmer - 09.09.2013

Any help?


Re: Unknown crashdetect - Errors - Konstantinos - 09.09.2013

Show us your OnPlayerDisconnect callback from DM.pwn