Quote:
Originally Posted by Arkshine
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.
|
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 ?