ZCMD crashes server. - 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: ZCMD crashes server. (
/showthread.php?tid=377098)
ZCMD crashes server. -
Vvolk - 12.09.2012
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.
Re: ZCMD crashes server. -
kizla - 12.09.2012
plss give use your code..
Re: ZCMD crashes server. -
Kyle - 12.09.2012
Go to OnPlayerCommandText in the include file and add this:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (isnull(cmdtext)) return 0;