SA-MP Forums Archive
error - 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: error (/showthread.php?tid=426329)



error - Ananisiki - 28.03.2013

^^^^^^^^


Re: error - Ananisiki - 28.03.2013

^^^^^^^^


Re: error - Pawnie - 28.03.2013

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(cage, 4, cmdtext);
return 0;
}

Make sure you have that.


Re: error - Konstantinos - 28.03.2013

Have you ever tried to search about these errors in ****** before you make a thread?

1. ****** it: undefined symbol "strtok" and add the custom function to the bottom.
2. new cmd[ 128 ];
3. ****** it: samp dcmd and add the defination under the includes.

All your questions will be answered if you read the results!


Re: error - Ananisiki - 28.03.2013

^^^^^^^^


Re: error - Konstantinos - 28.03.2013

the parameters on sscanf are fine, one question.

Do you use some command in strcmp and some others in dcmd? This may cause it, like it happens the most times.
Use only one.


Re: error - Ananisiki - 28.03.2013

^^^^^^^^


Re: error - Konstantinos - 28.03.2013

http://forum.sa-mp.com/showpost.php?...68&postcount=4
http://forum.sa-mp.com/showpost.php?...31&postcount=6


Re: error - Ananisiki - 28.03.2013

^^^^^^^^


Re: error - Konstantinos - 28.03.2013

This is fine! Make sure sscanf is updated.