Register Commands with Space
Okay so just a simple question but how do you register commands with a space in them.
Example: // This Command Works register_clcmd( "say /ServerRules", "Rules" ); // But this command doesn't because there is a space between Server and Rules. register_clcmd( "say /Server Rules", "Rules" ); // What I want to know is how to make it so this above command also works as well. |
Re: Register Commands with Space
You might have to register just "say" then check there (however, this is less efficient but don't know how much).
|
Re: Register Commands with Space
You mean just put it like this
register_clcmd( "say", "Rules" ); //and than under put? register_clcmd( "say /Server Rules", "Rules" ); |
Re: Register Commands with Space
Quote:
|
Re: Register Commands with Space
Quote:
|
Re: Register Commands with Space
register "say", get arg string, check it is equal to "/Server Rules" else return PLUGIN_CONTINUE.
|
Re: Register Commands with Space
Wont this work ?
Code:
|
Re: Register Commands with Space
Quote:
|
Re: Register Commands with Space
Code:
|
Re: Register Commands with Space
Quote:
|
| All times are GMT -4. The time now is 01:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.