08.09.2013, 18:17
Okay, I get this, when someone leaves the server.
I have an include that contains hook. It looks so.
Код:
[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"
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);