Command issue
#7

Quote:
Originally Posted by Shinzei_Banzai
Well. What about the /enter code. It's disabled somehow..?
This: if (strcmp("/enter", cmdtext, true, 10) == 0)
Tests the first 10 characters, for /enter. What will not work.

In general this: if (strcmp("/enter", cmdtext, true) == 0)
will do the trick.

But consider to create your commands with a proper solution like dcmd or the new zcmd.

- Draco
Reply


Messages In This Thread
Command issue - by Shinzei_Banzai - 24.09.2009, 17:53
Re: Command issue - by MB@ - 24.09.2009, 17:55
Re: Command issue - by Shinzei_Banzai - 24.09.2009, 18:07
Re: Command issue - by DracoBlue - 24.09.2009, 18:09
Re: Command issue - by Peter_Corneile - 24.09.2009, 18:14
Re: Command issue - by Shinzei_Banzai - 24.09.2009, 18:27
Re: Command issue - by DracoBlue - 24.09.2009, 18:33
Re: Command issue - by Sznupek - 24.09.2009, 18:37
Re: Command issue - by Peter_Corneile - 24.09.2009, 18:40
Re: Command issue - by Sznupek - 24.09.2009, 18:47

Forum Jump:


Users browsing this thread: 3 Guest(s)