Command Help
#9

Quote:
Originally Posted by prisonliferp
Посмотреть сообщение
No problem mate, did you try if my code worked?
Your code won't work because:

1st
if(strcmp("/cop", cmdtext, true, 10) ==0)

The length of the command text is not 10 but 4(and this was the main problem)

2nd
If you are not admin it will say the message but also Unknown Command cause you are using return 0
Reply


Messages In This Thread
Command Help - by ReneG - 24.12.2011, 20:09
Re: Command Help - by Jakku - 24.12.2011, 20:11
Re: Command Help - by ReneG - 24.12.2011, 20:16
Re: Command Help - by prisonliferp - 24.12.2011, 20:25
Re: Command Help - by Dark_Kostas - 24.12.2011, 20:31
Re: Command Help - by prisonliferp - 24.12.2011, 20:33
Re: Command Help - by ReneG - 24.12.2011, 20:37
Re: Command Help - by prisonliferp - 24.12.2011, 20:41
Re: Command Help - by Dark_Kostas - 24.12.2011, 20:44
Re: Command Help - by Gh05t_ - 24.12.2011, 20:56

Forum Jump:


Users browsing this thread: 1 Guest(s)