Raised This Month: $ Target: $400
 0% 

+command not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
urban_ninja
Senior Member
Join Date: Feb 2009
Old 03-07-2014 , 08:27   +command not working
Reply With Quote #1

For the record I did try to use search for this question but search seems to ignore the + character.

How do you get +commands to work properly? I register a +command and a -command in register_clcmd() but the +command only gets sent to server once on hold and -command never gets sent at all when the key is let go.
urban_ninja is offline
Kiske
Veteran Member
Join Date: May 2009
Old 03-07-2014 , 14:35   Re: +command not working
Reply With Quote #2

Show the code please.
__________________


Last edited by Kiske; 03-07-2014 at 14:35.
Kiske is offline
Send a message via Skype™ to Kiske
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 03-07-2014 , 17:07   Re: +command not working
Reply With Quote #3

Code:
#include <amxmodx> public plugin_init() {     register_plugin("Test Plugin 3", "", "[ --{-@ ]");         register_clcmd("+test", "test1");     register_clcmd("-test", "test2"); } public test1()     server_print("It..."); public test2()     server_print("...works!");

Code:
It...
...works!
We done here?
__________________
Black Rose is offline
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 06:02.


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