ZCMD crashes server.
#1

Today my server crashed 2 times. I use crashdetect plugin and it shows this:
Код:
19:28:17] [debug] Server crashed while executing SAMP.amx
[19:28:17] [debug] AMX backtrace:
[19:28:17] [debug] #0 00007394 in public OnPlayerCommandText (playerid=14, cmdtext[]=@0x004c11a4 "") at C:\Users\admin\las-venturas\pawno\include\zcmd.inc:85
[19:28:17] [debug] System backtrace:

What is this? How can I make protection against this or where can be problem? I thinked that somebody writes in command something like this: "%s%d%x", but I checked this and anything happened. It only crashes server in ondialogresponse, but there i made protection. Please somebody answer.
Reply
#2

plss give use your code..
Reply
#3

Go to OnPlayerCommandText in the include file and add this:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (isnull(cmdtext)) return 0;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)