Help CrashDetect
#1

Код:
[19:08:26]+ randy_rahimx360 has been Banned by Administrator Dmitry {C3C3C3}[Reason: GET LOST!!!!] [Date: 19/1/2014] [Time: 19:8]
[19:08:26]+ [debug] Server crashed while executing AdminSystem.amx
[19:08:26]+ [debug] AMX backtrace:
[19:08:26]+ [debug] #0 native fclose () [0809aab0] from samp03svr
[19:08:26]+ [debug] #1 000018a4 in dini_Create (filename[]=@0x000c92d4 "LuxAdmin/BanIds/126267.ini") at C:\Users\MaHdy\Desktop\SPA Server original\pawno\include\dini.inc:41
[19:08:26]+ [debug] #2 0004e86c in dcmd_ban (playerid=2, params[]=@0x000c9298 "4 GET LOST!!!!") at C:\Users\MaHdy\Desktop\SPA\filterscripts\AdminSystem.pwn:6025
[19:08:26]+ [debug] #3 0007a5ac in public OnPlayerCommandText (playerid=2, cmdtext[]=@0x000c9284 "/BAN 4 GET LOST!!!!") at C:\Users\MaHdy\Desktop\SPA\filterscripts\AdminSystem.pwn:8846
[19:08:26]+ [debug] Native backtrace:
[19:08:27]+ [debug] #0 b7381246 in _ZN10StackTraceC2EPv () from plugins/crashdetect.so
[19:08:27]+ [debug] #1 b7379f03 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[19:08:27]+ [debug] #2 b737a97c in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[19:08:27]+ [debug] #3 b737cdf4 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[19:08:27]+ [debug] #4 b7380d1d in ?? () from plugins/crashdetect.so
[19:08:27]+ [debug] #5 b77eb600 in ?? ()
[19:08:27]+ [debug] #6 b75242f2 in fclose () from /lib/i386-linux-gnu/libc.so.6
[19:08:27]+ [debug] #7 0809aac4 in ?? () from ./samp03svr
[19:08:27]+ [debug] #8 08093e44 in ?? () from ./samp03svr
[19:08:27]+ [debug] #9 b7379a91 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
Reply
#2

Код:
[19:08:26]+ [debug] #0 native fclose () [0809aab0] from samp03svr
[19:08:26]+ [debug] #1 000018a4 in dini_Create (filename[]=@0x000c92d4 "LuxAdmin/BanIds/126267.ini") at C:\Users\MaHdy\Desktop\SPA Server original\pawno\include\dini.inc:41
This should say enough.
The filterscript is trying to create the file '126267.ini' in '"LuxAdmin/BanIds/'. However, the script seems to be unable to access this location. Be sure the folders are created, with the correct name. Meaning that if the foldername in the script contains capital letters ('LuxAdmin'), the folder name should too.
Reply
#3

Have you modified dini.inc?

fclose crashed the server. A note from SA-MP Wiki:
Quote:
Important Note: The file handle must be valid, and must point to a file successfully opened by fopen.

dini_Create from dini.inc
pawn Код:
stock dini_Create(filename[]) {
    if (fexist(filename)) return false;
    new File:fhnd;
    fhnd=fopen(filename,io_write);
    if (fhnd) {
        fclose(fhnd);
        return true;
    }
    return false;
}
As you can see, it checks if the file handle is valid before closing it so there shouldn't be any problem if the function is exactly the same as in the include you use.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)