Code: Select all
Command "xxxxx" can not be Executed
For example, in CSQC_unit, i have
Code: Select all
registercommand("xxxxx");Code: Select all
if (argv(0) == "xxxxx")
somefunction();
Thank you all in advance!
Code: Select all
Command "xxxxx" can not be Executed
Code: Select all
registercommand("xxxxx");Code: Select all
if (argv(0) == "xxxxx")
somefunction();
it´s a simple fake example!!WickedShell wrote:Not to be obtuse, but in the last segment you posted you have one more x then in the above. (I'm not sure if you just typed up a fake example, or copy pasted output). Could be a dumb point on my part (and if so I can't help further because I haven't explored that area yet)
thank youSpike wrote:If you handle it, you must return true. You may only return false if you do not recognise the command.
If you don't return anything, false is returned anyway.