06.08.2013, 22:34
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).
-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