07.07.2013, 11:54
pawn Код:
[14:51:40] [debug] Run time error 4: "Array index out of bounds"
[14:51:40] [debug] Accessing element at index 365 past array upper bound 301
[14:51:40] [debug] AMX backtrace:
[14:51:40] [debug] #0 0001ad78 in public Streamer_OnPlayerDisconnect (playerid=0, reason=1) at pawno\g.pwn:5731
[14:51:40] [debug] #1 native CallLocalFunction () [00471e90] from samp-server.exe
[14:51:40] [debug] #2 00003abc in public Itter_OnPlayerDisconnect (playerid=0, reason=1) at pawno\include\streamer.inc:361
[14:51:40] [debug] #3 native CallLocalFunction () [00471e90] from samp-server.exe
[14:51:40] [debug] #4 000009ac in public OnPlayerDisconnect (playerid=0, reason=1) at pawno\include\foreach.inc:687
[14:51:40] [part] DaLy has left the server (0:1)
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
Streamer_CallbackHook(STREAMER_OPDC, playerid, reason);
if (Streamer_g_OPDC)
{
return CallLocalFunction("Streamer_OnPlayerDisconnect", "dd", playerid, reason);
}
return 1;
}
pawn Код:
return CallLocalFunction("Streamer_OnPlayerDisconnect", "dd", playerid, reason);
pawn Код:
return CallLocalFunction("Itter_OnPlayerDisconnect", "ii", playerid, reason);
pawn Код:
if (gLastCar[playerid] > 0)
{
gLastDriver[gLastCar[playerid]] = 900;
if(PlayerInfo[playerid][pPhousekey] != gLastCar[playerid]-1)
{
gCarLock[gLastCar[playerid]] = 0;
}
}
pawn Код:
gLastDriver[gLastCar[playerid]] = 900;