[08:19:50] [debug] Server crashed while executing CnR.amx [08:19:50] [debug] AMX backtrace: [08:19:50] [debug] #0 native fclose () [004056f0] from samp-server.exe [08:19:50] [debug] #1 0007d03c in ?? () from CnR.amx [08:19:50] [debug] #2 00140444 in public OnPlayerCommandReceived () from CnR.amx [08:19:50] [debug] #3 native CallLocalFunction () [00474110] from samp-server.exe [08:19:50] [debug] #4 00003f20 in public OnPlayerCommandText () from CnR.amx [08:19:50] [debug] System backtrace: [08:19:50] [debug] #0 004056fd in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #1 702e39e2 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #2 702e5e26 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #3 702dbf3f in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #4 702e3a0e in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #5 0047441e in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #6 004010b6 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #7 702e39e2 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #8 702e5e26 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #9 702dbf3f in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #10 702e3a0e in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #11 0046dbc0 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #12 004528f0 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #13 702e3a0e in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #14 0046e780 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #15 0049d629 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #16 0045b3aa in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #17 758e14ab in ?? () from C:\Windows\syswow64\KERNELBASE.dll [08:19:50] [debug] #18 758e14de in ?? () from C:\Windows\syswow64\KERNELBASE.dll
function GetINIString(file[], result[]) { new File:inifile, line[512]; inifile = fopen(file, io_read); if(!inifile) { printf("Fatal Error: Couldn't open \"%s\"!", file); return 0; } while(fread(inifile, line)) format(result, sizeof(line), "%s", line); fclose(inifile); return 0; } function WriteNIString(file[], string[]) { new File:inifile; inifile = fopen(file, io_write); if(!inifile) { printf("Fatal Error: Couldn't open \"%s\"!", file); return 0; } fwrite(inifile, string); fclose(inifile); return 0; }
[08:19:50] [debug] Server crashed while executing CnR.amx [08:19:50] [debug] AMX backtrace: [08:19:50] [debug] #0 native fclose () [004056f0] from samp-server.exe [08:19:50] [debug] #1 0007d03c in ?? () from CnR.amx [08:19:50] [debug] #2 00140444 in public OnPlayerCommandReceived () from CnR.amx [08:19:50] [debug] #3 native CallLocalFunction () [00474110] from samp-server.exe [08:19:50] [debug] #4 00003f20 in public OnPlayerCommandText () from CnR.amx [08:19:50] [debug] System backtrace: [08:19:50] [debug] #0 004056fd in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #1 702e39e2 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #2 702e5e26 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #3 702dbf3f in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #4 702e3a0e in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #5 0047441e in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #6 004010b6 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #7 702e39e2 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #8 702e5e26 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #9 702dbf3f in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #10 702e3a0e in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #11 0046dbc0 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #12 004528f0 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #13 702e3a0e in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL [08:19:50] [debug] #14 0046e780 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #15 0049d629 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #16 0045b3aa in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe [08:19:50] [debug] #17 758e14ab in ?? () from C:\Windows\syswow64\KERNELBASE.dll [08:19:50] [debug] #18 758e14de in ?? () from C:\Windows\syswow64\KERNELBASE.dll
function GetINIString(file[], result[]) { new File:inifile, line[512]; inifile = fopen(file, io_read); if(!inifile) { printf("Fatal Error: Couldn't open \"%s\"!", file); return 0; } while(fread(inifile, line)) format(result, sizeof(line), "%s", line); fclose(inifile); return 0; } function WriteNIString(file[], string[]) { new File:inifile; inifile = fopen(file, io_write); if(!inifile) { printf("Fatal Error: Couldn't open \"%s\"!", file); return 0; } fwrite(inifile, string); fclose(inifile); return 0; }
forward GetINIString(file[], result[], len_result);
public GetINIString(file[], result[], len_result)
{
new File:inifile;
inifile = fopen(file, io_read);
if(!inifile)
{
printf("Fatal Error: Couldn't open \"%s\"!", file);
return 0;
}
while(fread(inifile, result)) {
format(result, len_result, "%s", result);
}
fclose(inifile);
return 1;
}
forward WriteNIString(file[], string[]);
public WriteNIString(file[], string[])
{
new File:inifile;
inifile = fopen(file, io_write);
if(!inifile)
{
printf("Fatal Error: Couldn't open \"%s\"!", file);
return 0;
}
fwrite(inifile, string);
fclose(inifile);
return 1;
}
Use this
PHP код:
|
Still crashes.
You can come in this server and can use any commands. 91.121.164.164:8317 By the way samp inbuilt commands are working but not the gamemode commands. |
Crash could not because of the function, and you can avoid the mistake somewhere.
I went and checked did not find anything special, just a server crashes when I use /usec4 Look for errors in your commands |
If it was the file saving/loading section then when you connect it won't create your user files, when you reconnect it won't remember you logged on.
If those work, then it's elsewhere. People need to stop instantly relying on the crashdetect plugin, especially when there's a fault somewhere, that you'd find faster by figuring out what is wrong, rather than waiting for someone to decode the info returned from the plugin. A while back when it wasn't here, people knew how to debug scripts and track down issues, now everyone simply posts up the "oracles" report, which really, does nothing for me. Now, /remove, and /gps work... Judging though that those, are filterscripts. So not all commands, don't work. How's it crashing WITHOUT the crashdetect crap... What's the actual log output when it does. |