Quote:
Originally Posted by Arkshine
You misunderstand the use of bind_pcvar_* natives.
They bind a cvar to a variable. Meaning that variable will contain the actual cvar's value in real time. This is NOT a cvar handle. You can't set a value from that.
To set a cvar with set_pcvar_num(), you still need to retrieve the handle from create_cvar() and using that value.
You can also use set_cvar_num(), it doesn't matter.
|
I had not really understood then, the correct use of the native bind_pcvar_ *, with the example quoted by me, how could I assign a value to pcvar? Or do I have to create just the pcvar with create_cvar and use it normally?
__________________