Quote:
Originally Posted by eDz0r
pawn Код:
if (strcmp("/mycommand", cmdtext, false, 10) == 0)//and replace 10 with the number of caracters from "" { // Do something here return 1; }
I don't know if it will work
|
Exactly what I said NOT to do. Number is optional and means "how many characters from command to match with given word?". Ex.
PHP код:
if(!strcmp("/mycommand",cmdtext,true, 1))
here we gave instruction to match only 1 character so any command that contains
/ m y c o a n or
d which is every command coz you have / in /mycommand.