What's wrong with this?
#6

Returns
-1 if string1 comes before string2
1 if string1 comes after string2
0 if the strings are the same (for the matched length).

So, we basically check if these two strings we compare return 0 (they're same).
pawn Код:
if(!strcmp("/armor", cmdtext, true))
// OR
if(strcmp("/armor", cmdtext, true) == 0)
// is the same thing
Reply


Messages In This Thread
What's wrong with this? - by Zach7 - 06.08.2013, 22:19
Re: What's wrong with this? - by Konstantinos - 06.08.2013, 22:22
Re: What's wrong with this? - by Zach7 - 06.08.2013, 22:24
Re: What's wrong with this? - by Konstantinos - 06.08.2013, 22:28
Re: What's wrong with this? - by Zach7 - 06.08.2013, 22:31
Re: What's wrong with this? - by Konstantinos - 06.08.2013, 22:34
Re: What's wrong with this? - by Zach7 - 06.08.2013, 22:36
Re: What's wrong with this? - by Konstantinos - 06.08.2013, 22:41
Re: What's wrong with this? - by hossa - 06.08.2013, 22:47
Re: What's wrong with this? - by Zach7 - 06.08.2013, 23:47

Forum Jump:


Users browsing this thread: 1 Guest(s)