Unknown crashdetect - Errors
#1

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);
Reply
#2

Any help?
Reply
#3

Show us your OnPlayerDisconnect callback from DM.pwn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)