21.06.2016, 16:00
Quote:
Make also sure that "pos" returned by fopen is not 0 otherwise using it to file functions such as fwrite and fclose will crash the server.
Always have crashdetect plugin loaded to get information directly than guessing. A suggestion as well if you are interested: https://sampforum.blast.hk/showthread.php?tid=603175 |
Alright, installed crashdetect plugin :
PHP код:
[17:58:13] [debug] Server crashed while executing fs.amx
[17:58:13] [debug] AMX backtrace:
[17:58:13] [debug] #0 native fwrite () from samp-server.exe
[17:58:13] [debug] #1 00029dbc in ?? (17393428, 17393828, 17393884, 17393912, 17412996) from fs.amx
[17:58:13] [debug] #2 0002944c in ?? (1, 17412996) from fs.amx
[17:58:13] [debug] #3 00022d80 in public cmd_resetsetdata (0, 17396976) from fs.amx
[17:58:13] [debug] #4 native CallLocalFunction () from samp-server.exe
[17:58:13] [debug] #5 00000664 in public OnPlayerCommandText (0, 17396912) from fs.amx
[17:58:13] [debug] Native backtrace:
[17:58:13] [debug] #0 77040d72 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[17:58:13] [debug] #1 00498bb8 in ?? () from samp-server.exe
[17:58:13] [debug] #2 0040531e in ?? () from samp-server.exe
[17:58:13] [debug] Server crashed while executing fs.amx
[17:58:13] [debug] AMX backtrace:
[17:58:13] [debug] #0 native fwrite () from samp-server.exe
[17:58:13] [debug] #1 00029dbc in public cmd_resetsetdata (0, 17396912) from fs.amx
[17:58:13] [debug] #2 native CallLocalFunction () from samp-server.exe
[17:58:13] [debug] #3 00000664 in public OnPlayerCommandText (0, 17396912) from fs.amx
[17:58:13] [debug] Native backtrace:
[17:58:13] [debug] #0 77041e49 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[17:58:13] [debug] #1 77041c6a in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[17:58:13] [debug] #2 00498e11 in ?? () from samp-server.exe
[17:58:13] [debug] #3 0044d9c9 in ?? () from samp-server.exe
[17:58:13] [debug] #4 0045856c in ?? () from samp-server.exe
[17:58:13] [debug] #5 0045ad2a in ?? () from samp-server.exe
[17:58:13] [debug] #6 61c07c09 in ?? () from plugins\crashdetect.dll
[17:58:13] [debug] #7 75f02cc7 in ?? () from C:\Windows\SYSTEM32\KERNELBASE.dll
[17:58:13] [debug] #8 75f02ce8 in ?? () from C:\Windows\SYSTEM32\KERNELBASE.dll