crashdetect, crashed
#1

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..
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)