SA-MP Forums Archive
Whats the difference in this commands?: ... need answer - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Whats the difference in this commands?: ... need answer (/showthread.php?tid=99543)



Whats the difference in this commands?: ... need answer - yugokoral - 28.09.2009

Whats the difference in using this:
Код:
...
if(strcmp(cmdtext,"/...",true)==0)
...
or this
Код:
...
if(!strcmp(cmdtext,"/...",true))
...
and what means this: " ==0 "


thank you


Re: Whats the difference in this commands?: ... need answer - yugokoral - 28.09.2009

Thank you! I understand now


Re: Whats the difference in this commands?: ... need answer - dice7 - 28.09.2009

So, if a 'int' declerated function doesn't return a value when called, It's handled like it returned false ?