Raised This Month: $32 Target: $400
 8% 

Retrieving command description


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadowstryker10
New Member
Join Date: Oct 2018
Old 10-04-2018 , 16:06   Retrieving command description
Reply With Quote #1

Is there a way to retrieve the description of a command programmatically? I can't find a function that I could easily extract the data from, and the only way I can see that it could be done is by taking a tip from adminhelp.sp (sm_help) and iterating through all commands using a CommandIterator and simply filtering the only one that I want, which would be extremely inefficient.

Any ideas?
Shadowstryker10 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-05-2018 , 18:18   Re: Retrieving command description
Reply With Quote #2

Thread moved to SM
__________________
Bugsy is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 10-05-2018 , 21:52   Re: Retrieving command description
Reply With Quote #3

I'm not aware of a reason why there's no function to get the description directly from a convar. You could file an issue on Github for a feature request.
Fyren 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 18:47.


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