concmd info
Hey guys,
How i can get info of concmd. Exemple: i have: register_concmd("amx_help", "cmdHelp", 0, "<page> [nr of cmds (only for server)] - displays this help") and i want to get info to this command: <page> [nr of cmds (only for server)] - displays this help i try with get_concmd but no results.... Ty. |
Re: concmd info
get_concmd() should work, how you use it ?
|
Re: concmd info
i have this:
Quote:
|
Re: concmd info
Looks like you would need to loop through all commands with get_concmd() and get_concmdsnum() to retreive the correct a single command info.
I would probably cache the command names and their associated indices in a Trie so that when I look for the one command it is quick and simple to get the index. Then with that index you would use get_concmd() to retrieve the information that you want. Shouldn't be too hard to write one up. |
Re: concmd info
You can use this:
Code:
|
Re: concmd info
Much more compact than my method. Don't suppose that efficiency between yours and mine would be significant (ignoring plugin_cfg code to populate the trie)?
|
Re: concmd info
Quote:
I actually wouldn't use my function unless I'm using it for one command. It would be better to imitate my function and filter the commands you want into the trie. |
Re: concmd info
exolent can you show me an exemple with your stock metod!?
|
Re: concmd info
PHP Code:
|
| All times are GMT -4. The time now is 10:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.