når jeg har brugt nvault åbner jeg og lukker den i hver funktion.
quick example idk if it will help ya:
PHP Code:
public load_noscope_kills( index )
{
new Vault = nvault_open( top_kills_vault )
new Key[ 64 ], Value[ 64 ], Steam[ 32 ]
get_user_authid( index, Steam, sizeof Steam - 1 )
formatex( Key, sizeof Key - 1, "%s-%s:", Steam, top_kills_vault )
nvault_get( Vault, Key, Value, sizeof Value - 1 )
nvault_close( Vault )
g_noscope_counter[ index ] = str_to_num( Value )
}
__________________