samp03svr: amx/amxfile.c:222: fputs_cell: Assertion `fp!=((void *)0)' failed.
[14:50:59] [debug] Server crashed while executing RP.amx [14:50:59] [debug] AMX backtrace: [14:50:59] [debug] #0 native fwrite () from samp03svr [14:50:59] [debug] #1 00014f88 in ?? (0, 40588, -1) from RP.amx [14:50:59] [debug] #2 000112ec in public OnPlayerCommandReceived (0, 4440936) from RP.amx [14:50:59] [debug] #3 native CallLocalFunction () from samp03svr [14:50:59] [debug] #4 00005b80 in public OnPlayerCommandText (0, 4440912) from RP.amx [14:50:59] [debug] Native backtrace: [14:50:59] [debug] #0 f7483e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [14:50:59] [debug] #1 f747cbcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [14:50:59] [debug] #2 f747ddbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [14:50:59] [debug] #3 f747e226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [14:50:59] [debug] #4 f7483adc in ?? () from plugins/crashdetect.so [14:50:59] [debug] #5 f7769420 in ?? () [14:50:59] [debug] #6 f7769440 in ?? () [14:50:59] [debug] #7 f74d26c1 in gsignal () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [14:50:59] [debug] #8 f74d5af2 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [14:50:59] [debug] #9 f74cb878 in __assert_fail () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [14:50:59] [debug] #10 0809b99c in ?? () from ./samp03svr [14:50:59] [debug] #11 0809bdff in ?? () from ./samp03svr [14:50:59] [debug] #12 080950e4 in ?? () from ./samp03svr [14:50:59] [debug] #13 f747f94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so [14:50:59] [debug] #14 f74828f8 in ?? () from plugins/crashdetect.so [14:50:59] [debug] #15 f7486916 in amx_Exec () from plugins/crashdetect.so [14:50:59] [debug] #16 f747ebe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so [14:50:59] [debug] #17 f7482659 in ?? () from plugins/crashdetect.so [14:50:59] [debug] #18 f73c625c in ?? () from plugins/streamer.so [14:50:59] [debug] #19 080dfd62 in ?? () from ./samp03svr [14:50:59] [debug] #20 080950e4 in ?? () from ./samp03svr [14:50:59] [debug] #21 f747f94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so [14:50:59] [debug] #22 f74828f8 in ?? () from plugins/crashdetect.so [14:50:59] [debug] #23 f7486916 in amx_Exec () from plugins/crashdetect.so [14:50:59] [debug] #24 f747ebe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so [14:50:59] [debug] #25 f7482659 in ?? () from plugins/crashdetect.so [14:50:59] [debug] #26 f73c625c in ?? () from plugins/streamer.so [14:50:59] [debug] #27 080a5632 in ?? () from ./samp03svr [14:50:59] [debug] #28 080b1751 in ?? () from ./samp03svr [14:50:59] [debug] #29 08071d38 in ?? () from ./samp03svr [14:50:59] [debug] #30 08071e32 in ?? () from ./samp03svr [14:50:59] [debug] #31 0807bc50 in ?? () from ./samp03svr [14:50:59] [debug] #32 080aed3d in ?? () from ./samp03svr [14:50:59] [debug] #33 080aef02 in ?? () from ./samp03svr [14:50:59] [debug] #34 080aa13a in ?? () from ./samp03svr [14:50:59] [debug] #35 f74bee46 in __libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [14:50:59] [debug] #36 0804b4e1 in ?? () from ./samp03svr
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
public OnPlayerCommandReceived(playerid, cmdtext[])
{
Array[0] = 0;
format(Array, sizeof(Array), "[command text] [%s] %s", GetName(playerid), cmdtext);
printf("%s", Array);
Log(0, Array);
DeletePVar(playerid, "LastTyped");
return 1;
}
Yes I have chmodded my entire SA:MP directory to 777, that is not the issue.
|
whoami
ls -la
ls -la scriptfiles
Log(type, string[], group = -1)
{
new File:logfile, logstring[300];
format(logstring, sizeof(logstring), "[%s] %s\r\n", GetDateFormat(gettime(), 2), string);
switch(type)
{
case 0: // Server
{
logfile = fopen("Logs/Server.log", io_append);
fwrite(logfile, logstring);
fclose(logfile);
}
}
}
Yes I have chmodded my entire SA:MP directory to 777, that is not the issue.
|
But it is a terribly bad idea. Besides, if the file exists in the folder but the server does not have permission to write in it then it can still be the issue. Execute these commands in the main server directory:
Код:
whoami Код:
ls -la Код:
ls -la scriptfiles |
root@---:~/SAMP# whoami
root
root@---:~/SAMP# ls -la
total 4376
drwxrwxrwx 6 root root 4096 Jun 29 14:47 .
drwxrwxrwx 6 root root 4096 Jun 27 01:26 ..
-rwxrwxrwx 1 root root 10936 Jan 24 2015 announce
drwxrwxrwx 2 root root 4096 Jun 24 02:55 filterscripts
drwxrwxrwx 2 root root 4096 Jun 24 03:12 gamemodes
-rwxrwxrwx 1 root root 2387912 Jun 19 2010 libmysqlclient.so.15
-rwxrwxrwx 1 root root 3777 Aug 9 2010 LICENSE
drwxrwxrwx 2 root root 4096 Jun 29 14:40 plugins
-rwxrwxrwx 1 root root 1416792 Jul 14 2015 samp03svr
-rwxrwxrwx 1 root root 591652 Jul 11 2015 samp-npc
drwxrwxrwx 3 root root 4096 Jun 29 14:20 scriptfiles
-rwxrwxrwx 1 root root 393 Jun 29 14:42 server.cfg
-rwxrwxrwx 1 root root 309 Jun 24 03:42 server.cfg.save
-rwxrwxrwx 1 root root 18987 Jun 29 14:59 server_log.txt
root@---:~/SAMP# ls -la scriptfiles
total 12
drwxrwxrwx 3 root root 4096 Jun 29 14:20 .
drwxrwxrwx 6 root root 4096 Jun 29 14:47 ..
drwxrwxrwx 2 root root 4096 Jun 29 14:20 Logs
Aw man, running as root.
![]() Do the same for the scriptfiles/Logs directory, please. I need to see the permissions on the actual file itself. |
root@---:~/SAMP/scriptfiles# ls -la Logs
total 68
drwxrwxrwx 2 root root 4096 Jun 29 14:20 .
drwxrwxrwx 3 root root 4096 Jun 29 15:24 ..
-rwxrwxrwx 1 root root 2450 Jun 29 14:20 Admin.log
-rwxrwxrwx 1 root root 1023 Jun 29 14:20 EditGroup.log
-rwxrwxrwx 1 root root 50 Jun 29 14:20 Group.log
-rwxrwxrwx 1 root root 498 Jun 29 14:20 HeadAdmin.log
-rwxrwxrwx 1 root root 1154 Jun 29 14:20 JobEdit.log
-rwxrwxrwx 1 root root 30156 Jun 29 15:27 Server.log