Server crash - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server crash (
/showthread.php?tid=595048)
Server crash -
AlmirDelic - 27.11.2015
Hello all,
For a long time we drop server, i put crashdetect in gamemode, and server.log says:
Код:
[17:13:13] [debug] Server crashed while executing NLRP.amx
[17:13:13] [debug] AMX backtrace:
[17:13:13] [debug] #0 00002000 in ?? (41, 41, 0, 80753988, 80753892, 80751716, 21, 78) from NLRP.amx
[17:13:13] [debug] #1 0000006f in public OnPlayerCommandPerformed () from NLRP.amx
[17:13:13] [debug] #2 native CallLocalFunction () from samp03svr
[17:13:13] [debug] #3 0000423c in public OnPlayerCommandText (29, 78757480) from NLRP.amx
What to do, how do I know that the command?
Re: Server crash -
BiosMarcel - 27.11.2015
Well if it crashes while executing a command just use a command log plugin and u will know
Re: Server crash -
AlmirDelic - 27.11.2015
what exactly do you mean?
Re: Server crash -
BiosMarcel - 27.11.2015
it crashes when u execute an command doesn it?
Re: Server crash -
AlmirDelic - 27.11.2015
there is a command that lowers server but I do not know what that command
Re: Server crash -
AlmirDelic - 28.11.2015
Quote:
[19:11:19] [debug] Server crashed while executing NLRP.amx
[19:11:19] [debug] AMX backtrace:
[19:11:19] [debug] #0 00007200 in ?? (50, 32, 0, 80768212, 80768116, 80765940, 5, 73) from NLRP.amx
[19:11:19] [debug] #1 0000006e in public OnPlayerCommandPerformed () from NLRP.amx
[19:11:19] [debug] #2 native CallLocalFunction () from samp03svr
[19:11:19] [debug] #3 0000423c in public OnPlayerCommandText (58, 78771704) from NLRP.amx
|
Help? :/
Re: Server crash -
BiosMarcel - 28.11.2015
why the hell dont u just do what i told u in my private message? xD
Re: Server crash -
AlmirDelic - 28.11.2015
I did not see that you have sent a message to sorry,
thank you very much but it is not a solution, I need something more specific?
Re: Server crash -
BiosMarcel - 28.11.2015
its the specific enough it will show u the command that causes the crash, afterwards u can show us the command
Re: Server crash -
BiosMarcel - 28.11.2015
PHP код:
new string1[80];
format(string1,80,"Logs/Command.txt");
new
File:lFile = fopen(string1, io_append),
logData[200],
fyear, fmonth, fday,
fhour, fminute, fsecond;
getdate(fyear, fmonth, fday);
gettime(fhour, fminute, fsecond);
format(logData, 200,"[%02d/%02d/%04d %02d:%02d:%02d] %s: %s \r\n", fday, fmonth, fyear, fhour, fminute, fsecond, GetName(playerid), cmdtext);
fwrite(lFile, logData);
fclose(lFile);
return 1;
just put that into your public onPlayerCommandText, ok?