Raised This Month: $ Target: $400
 0% 

register_cvar and create_cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-20-2015 , 07:28   Re: register_cvar and create_cvar
Reply With Quote #4

The difference is create_cvar has more arguments, allowing you to provide a description and enabling a minimum/maximum value.

If you know about it, it's my Cvar Utilities module integrated to AMXX in a more sane way.

As side-note, providing at least a description is useful if you're using AutoExecConfig, which generates a config file per plugin with cvar value/description/bounds.
Exemple
__________________

Last edited by Arkshine; 12-20-2015 at 07:32.
Arkshine is offline
 



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:12.


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