Raised This Month: $ Target: $400
 0% 

no such command error in cs console


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[DumB]Steamsucks
Junior Member
Join Date: Feb 2006
Location: uk
Old 03-11-2006 , 10:56   no such command error in cs console
Reply With Quote #1

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 ...
__________________
If it works then i wrote it if it erros on less then 50 lines i had help with it if it breaks totally it wasnt me..
[DumB]Steamsucks is offline
Send a message via MSN to [DumB]Steamsucks
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 03-11-2006 , 11:05  
Reply With Quote #2

you have to return PLUGIN_HANDLED; inside your function
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
[DumB]Steamsucks
Junior Member
Join Date: Feb 2006
Location: uk
Old 03-11-2006 , 11:13  
Reply With Quote #3

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 !
__________________
If it works then i wrote it if it erros on less then 50 lines i had help with it if it breaks totally it wasnt me..
[DumB]Steamsucks is offline
Send a message via MSN to [DumB]Steamsucks
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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