sub commands zcmd+sscanf - 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: sub commands zcmd+sscanf (
/showthread.php?tid=527552)
sub commands zcmd+sscanf -
ReaZoN - 23.07.2014
can u tell me whats wrong with this code?
http://pastebin.com/h85hs8Mp
Re: sub commands zcmd+sscanf -
SyntricT - 23.07.2014
Quote:
Originally Posted by ******
You are extracting the whole of the input, then comparing it to "Create". So you are essentially doing;
pawn Код:
if (!strcmp("Create Ballas", "Create", true))
Which will clearly always fail. Two ways to fix it: use "s[15] " instead of "s[15]", or put a length in the "strcmp" function.
|
ohh ok tnx!! (i asked ReaZoN to open this thread for me)
Re: sub commands zcmd+sscanf -
KayJ - 23.07.2014
Quote:
Originally Posted by SyntricT
ohh ok tnx!! (i asked ReaZoN to open this thread for me)
|
why don't you?
Re: sub commands zcmd+sscanf -
SyntricT - 23.07.2014
Quote:
Originally Posted by SturtIndia
why don't you?
|
i needed to go :P (sry for bad english)