Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by biltong
Seriously, learn to use brackets.
|
Not only that, he should also learn some basics like i already mentioned before.
Quote:
Originally Posted by bartje01
pawn Код:
if (strcmp("/policetolsv", cmdtext, true, 10) == 0) { // other code }
|
/policetolsv has 12 characters, not 10.
So this would be correct:
pawn Код:
if(strcmp("/policetolsv", cmdtext, true, 12) == 0) { // other code }
or:
pawn Код:
if(strcmp("/policetolsv", cmdtext, true) == 0) { // other code }
|
Thank you for showing me what that number means, lol I didn't know that. ZCMD has made me lazy -.-