AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   no such command error in cs console (https://forums.alliedmods.net/showthread.php?t=25295)

[DumB]Steamsucks 03-11-2006 10:56

no such command error in cs console
 
i have a line of code for a user to bind a command in console

Code:
register_clcmd("+tac", "tac_on",-1,"Activates Tactical Mode")

in cs when i type bind t +tacon and then press t the command in my code works but the console outputs

Code:

no such command +tac
any ideas how to stop this or is my clcmd formated wrongly...

regards ...

Greenberet 03-11-2006 11:05

you have to return PLUGIN_HANDLED; inside your function

[DumB]Steamsucks 03-11-2006 11:13

Quote:

Originally Posted by Greenberet
you have to return PLUGIN_HANDLED; inside your function

arghh doh couldnt see the tree for the bush tbh thanks alot mate cheers !


All times are GMT -4. The time now is 20:23.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.