Need quick help, THanks! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need quick help, THanks! (
/showthread.php?tid=84721)
Need quick help, THanks! -
XeoN_13 - 02.07.2009
Hello, im posting a new topic because my server keeps crashing . I know for a fact its a command but I cant tell wich one it is , is there a way of making a Log of commands? so the last command on the log will be the one crashing my server? , what i mean is if theres a way and How to make a .txt file with all the commands that are used in server or in game so when server crashes we can look at log and see wich one crashed the server? can any one please help me . thanks
Re: Need quick help, THanks! -
XeoN_13 - 02.07.2009
any one? i really need help :S
Re: Need quick help, THanks! -
Correlli - 02.07.2009
Under OnPlayerCommandText add this:
pawn Код:
printf("DEBUG: OnPlayerCommandText(%d, %s)", playerid, cmdtext);
You don't need to log it to a file, just add this and when the crash appears, open server_log.txt and check the last log from OnPlayerCommandText.
Re: Need quick help, THanks! -
XeoN_13 - 02.07.2009
thank you ALOT!! ill try thanks!
Re: Need quick help, THanks! -
Chaprnks - 02.07.2009
Код:
printf("DEBUG: OnPlayerCommandText(%d, %s", playerid, cmdtext));
Forgot the last )
Re: Need quick help, THanks! -
Correlli - 02.07.2009
Quote:
Originally Posted by ǝɹoɯ‾ʎ
Код:
printf("DEBUG: OnPlayerCommandText(%d, %s", playerid, cmdtext));
Forgot the last ) 
|
I edited the post before you posted.
Re: Need quick help, THanks! -
XeoN_13 - 02.07.2009
this will show up on server_log.txt , right? for every cmd?
Re: Need quick help, THanks! -
XeoN_13 - 02.07.2009
I get this error
Код:
C:\Users\xLinuX\Documents\My Received Files\VLRP8.pwn(12911) : error 001: expected token: ";", but found ")"
C:\Users\xLinuX\Documents\My Received Files\VLRP8.pwn(12911) : error 029: invalid expression, assumed zero
C:\Users\xLinuX\Documents\My Received Files\VLRP8.pwn(12911) : warning 215: expression has no effect
Re: Need quick help, THanks! -
Correlli - 02.07.2009
Did you added it like this:
[quote=Don Correlli ]
Under OnPlayerCommandText add this:
pawn Код:
printf("DEBUG: OnPlayerCommandText(%d, %s)", playerid, cmdtext);
?
Re: Need quick help, THanks! -
XeoN_13 - 02.07.2009
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
printf("DEBUG: OnPlayerCommandText(%d, %s)", playerid, cmdtext);
like that