Need quick help, THanks!
#1

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
Reply
#2

any one? i really need help :S
Reply
#3

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.
Reply
#4

thank you ALOT!! ill try thanks!
Reply
#5

Код:
printf("DEBUG: OnPlayerCommandText(%d, %s", playerid, cmdtext));
Forgot the last )
Reply
#6

Quote:
Originally Posted by ǝɹoɯ‾ʎ
Код:
printf("DEBUG: OnPlayerCommandText(%d, %s", playerid, cmdtext));
Forgot the last )
I edited the post before you posted.
Reply
#7

this will show up on server_log.txt , right? for every cmd?
Reply
#8

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
Reply
#9

Did you added it like this:

[quote=Don Correlli ]
Under OnPlayerCommandText add this:
pawn Код:
printf("DEBUG: OnPlayerCommandText(%d, %s)", playerid, cmdtext);
?
Reply
#10

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	printf("DEBUG: OnPlayerCommandText(%d, %s)", playerid, cmdtext);
like that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)