Annoying Command Problem
#5

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,true1)) 
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.
Reply


Messages In This Thread
Annoying Command Problem - by Compton - 25.08.2011, 10:18
Re: Annoying Command Problem - by [MG]Dimi - 25.08.2011, 10:21
Re: Annoying Command Problem - by eDz0r - 25.08.2011, 10:23
Re: Annoying Command Problem - by Compton - 25.08.2011, 10:29
Re: Annoying Command Problem - by [MG]Dimi - 25.08.2011, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)