Quote:
|
Originally Posted by AMX Mod X Documentation
nvault_get ( vault, const key[], ... )
nvault_get - Gets a vault value by returning an int setting a byref float or setting a string & maxlength.
|
so assuming I've already opened the vault in plugin_init, I assume that I could do
Code:
i_myinteger = nvault_get ( myvault, s_keyname )
if ( i_myinteger == 0 )
// blah blah my code here
Is that correct usage of nvault_get and would I then need to do
Code:
nvault_pset ( myvault, s_keyname, 0 )
to change the value to 0 and
Code:
nvault_pset ( myvault, s_keyname, 1 )
in order to turn the value BACK to 1 in other parts of the code? Is this correct?