crashdetect, crashed - 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: crashdetect, crashed (
/showthread.php?tid=618781)
crashdetect, crashed -
XBossX - 09.10.2016
speechless, explainless these codes says what i'am facing...
Код:
[19:54:02] [debug] Server crashed while executing L-RP.amx
[19:54:02] [debug] AMX backtrace:
[19:54:02] [debug] #0 native fread () from samp03svr
[19:54:02] [debug] #1 00025660 in ?? () from L-RP.amx
[19:54:02] [debug] #2 0007fd80 in public svCheats_OnGameModeInit () from L-RP.amx
[19:54:02] [debug] #3 native CallLocalFunction () from samp03svr
[19:54:02] [debug] #4 0000b4e0 in public SSCANF_OnGameModeInit () from L-RP.amx
[19:54:02] [debug] #5 0000529c in public CB_OnGameModeInit () from L-RP.amx
[19:54:02] [debug] #6 00002db4 in public zcmd_OnGameModeInit () from L-RP.amx
[19:54:02] [debug] #7 native CallLocalFunction () from samp03svr
[19:54:02] [debug] #8 00001fc0 in public Itter_OnGameModeInit () from L-RP.amx
[19:54:02] [debug] #9 native CallLocalFunction () from samp03svr
[19:54:02] [debug] #10 00001590 in public ScriptInit_OnGameModeInit () from L-RP.amx
[19:54:02] [debug] #11 00000544 in public OnGameModeInit () from L-RP.amx
[19:54:02] [debug] Native backtrace:
[19:54:02] [debug] #0 f73b29f0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[19:54:02] [debug] #1 f73aba62 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[19:54:02] [debug] #2 f73ac764 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[19:54:02] [debug] #3 f73ae6b4 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[19:54:02] [debug] #4 f73b231d in ?? () from plugins/crashdetect.so
[19:54:02] [debug] #5 f770e420 in ?? ()
[19:54:02] [debug] #6 f770e440 in ?? ()
[19:54:02] [debug] #7 f7409687 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[19:54:02] [debug] #8 f740cab3 in abort () from /lib/i386-linux-gnu/libc.so.6
[19:54:02] [debug] #9 f74027c7 in ?? () from /lib/i386-linux-gnu/libc.so.6
[19:54:02] [debug] #10 f7402877 in ?? () from /lib/i386-linux-gnu/libc.so.6
[19:54:02] [debug] #11 0809b7a1 in ?? () from ./samp03svr
[19:54:02] [debug] #12 0809bf43 in ?? () from ./samp03svr
[19:54:02] [debug] #13 080950e4 in ?? () from ./samp03svr
[19:54:02] [debug] #14 f73ad4d3 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[19:54:02] [debug] #15 00000001 in ?? () from ��l�H�l��!� �!� �#� �!� }%� �%� �Am�
well i found a gamemode, but when i tried to start it, it gives me debugs..
Re: crashdetect, crashed -
azzerking - 09.10.2016
If
fopen returns 0 it will crash the server, you need to use
fexists to make sure the file exists before opening it.
then make sure to close the handle after reading / writing to it.
Make sure the file exists.