Raised This Month: $ Target: $400
 0% 

register_cvar and create_cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
luxor
Member
Join Date: Jan 2014
Old 12-20-2015 , 08:39   Re: register_cvar and create_cvar
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
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
ok, now i see
but in api it's a note, and that note says : "Deprecated. Consider to use create_cvar for more options.", then if it's deprecated why we can still use ? i mean.. look at client_disconnect, it's practically deprecated, not just theoretically like register_cvar. (#pragma deprecated Use client_disconnected() instead.)
may i create a pull request to fully deprecate the register_cvar and use create_cvar on amxx plugins ?
luxor 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