11.05.2015, 20:13
Hi!
My server crashes sometimes, but i dont understand why?
server_log.txt
OnPlayerUpdate
I use crashdetect plugin and tracing callbacks.
My server crashes sometimes, but i dont understand why?
server_log.txt
Код:
..... [2015.05.11 20:18:22] [trace] public OnVehicleStreamOut (vehicleid=1806, forplayerid=8493620) [2015.05.11 20:18:22] [trace] public OnVehicleStreamOut () [2015.05.11 20:18:22] [trace] public OnVehicleStreamOut () [2015.05.11 20:18:22] [trace] public OnVehicleStreamOut () [2015.05.11 20:18:22] [trace] public OnVehicleStreamOut () [2015.05.11 20:18:22] [trace] public OnVehicleStreamOut () [2015.05.11 20:18:22] [trace] public OnVehicleStreamOut () [2015.05.11 20:18:22] [trace] public OnPlayerUpdate () [2015.05.11 20:18:22] [trace] public OnVehicleStreamIn () [2015.05.11 20:18:22] [trace] public OnVehicleStreamIn () [2015.05.11 20:18:22] [trace] public OnVehicleStreamOut () [2015.05.11 20:18:22] [trace] public OnPlayerUpdate () [2015.05.11 20:18:22] [trace] public OnPlayerUpdate () [2015.05.11 20:18:22] [trace] public OnPlayerUpdate () [2015.05.11 20:18:22] [trace] public OnPlayerUpdate () [2015.05.11 20:18:22] [trace] public OnPlayerUpdate () [2015.05.11 20:18:22] [trace] public OnPlayerUpdate () [2015.05.11 20:18:22] [trace] public OnPlayerUpdate () [2015.05.11 20:18:22] [debug] Server crashed due to an unknown error [2015.05.11 20:18:22] [debug] Native backtrace: [2015.05.11 20:18:22] [debug] #0 b73c9e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [2015.05.11 20:18:22] [debug] #1 b73c2bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [2015.05.11 20:18:22] [debug] #2 b73c3dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [2015.05.11 20:18:22] [debug] #3 b73c4226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [2015.05.11 20:18:22] [debug] #4 b73c9adc in ?? () from plugins/crashdetect.so [2015.05.11 20:18:22] [debug] #5 b76f040c in ?? () [2015.05.11 20:18:22] [debug] #6 b746463e in ?? () from /lib/i386-linux-gnu/libc.so.6 [2015.05.11 20:18:22] [debug] #7 b768c51f in _ZdlPv () from /usr/lib/i386-linux-gnu/libstdc++.so.6 [2015.05.11 20:18:22] [debug] #8 b768c57b in _ZdaPv () from /usr/lib/i386-linux-gnu/libstdc++.so.6 [2015.05.11 20:18:22] [debug] #9 0807fbc8 in ?? () from ./samp03svr [2015.05.11 20:18:22] [debug] #10 0808010d in ?? () from ./samp03svr [2015.05.11 20:18:22] [debug] #11 08074c0a in ?? () from ./samp03svr [2015.05.11 20:18:22] [debug] #12 080763ce in ?? () from ./samp03svr [2015.05.11 20:18:22] [debug] #13 b76cfd4c in ?? () from /lib/i386-linux-gnu/libpthread.so.0 [2015.05.11 20:18:22] [debug] #14 b74dd8be in clone () from /lib/i386-linux-gnu/libc.so.6
Код:
public OnPlayerUpdate(playerid) { new drunknew = GetPlayerDrunkLevel(playerid); if (drunknew < 100) { SetPlayerDrunkLevel(playerid, 2000); } else { if (pDrunkLevelLast[playerid] != drunknew) { new wfps = pDrunkLevelLast[playerid] - drunknew; if ((wfps > 0) && (wfps < 200)) pFPS[playerid] = wfps; pDrunkLevelLast[playerid] = drunknew; } } return 1; }