problem with CSQC and commands
Moderator: InsideQC Admins
5 posts
• Page 1 of 1
problem with CSQC and commands
Hello to everyone. I have a problem, is that every time i run my own console command CSQC shows me this message ( i am using Darkplaces)
The command is executed anyway. But the message is very annoying.
For example, in CSQC_unit, i have
and in CSQC_ConsoleCommand i have for example
So, I was concerned that the command is executed. But is there any way that does not appear that particularly annoying message?
Thank you all in advance!
- Code: Select all
Command "xxxxx" can not be Executed
The command is executed anyway. But the message is very annoying.
For example, in CSQC_unit, i have
- Code: Select all
registercommand("xxxxx");
and in CSQC_ConsoleCommand i have for example
- Code: Select all
if (argv(0) == "xxxxx")
somefunction();
So, I was concerned that the command is executed. But is there any way that does not appear that particularly annoying message?
Thank you all in advance!
Last edited by Nahuel on Mon Nov 21, 2011 5:47 pm, edited 1 time in total.
hi, I am nahuel, I love quake and qc.
-

Nahuel - Posts: 492
- Joined: Wed Jan 12, 2011 8:42 pm
- Location: mar del plata
Re: problem with CSQC and commands
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)
- WickedShell
- Posts: 24
- Joined: Mon Feb 14, 2011 5:16 am
Re: problem with CSQC and commands
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)
it´s a simple fake example!!
hi, I am nahuel, I love quake and qc.
-

Nahuel - Posts: 492
- Joined: Wed Jan 12, 2011 8:42 pm
- Location: mar del plata
Re: problem with CSQC and commands
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.
If you don't return anything, false is returned anyway.
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
Re: problem with CSQC and commands
Spike 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.
thank you
hi, I am nahuel, I love quake and qc.
-

Nahuel - Posts: 492
- Joined: Wed Jan 12, 2011 8:42 pm
- Location: mar del plata
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest