this is how i save and load data from nVault
Code:
public SaveXP(id){
new Vault = nvault_open("Last_Man");
new Key[64],Value[64],Name[32];
get_user_name(id,Name,sizeof Name - 1);
formatex(Key,sizeof Key - 1, "%s - LMS:", Name);
formatex(Value,sizeof Value - 1, "%d", g_iLastMan[ id ]);
nvault_set(Vault,Key,Value);
nvault_close(Vault);
}
public LoadXP(id){
new Vault = nvault_open("Last_Man");
new Key[64],Value[64],Name[32];
get_user_name(id,Name,sizeof Name - 1);
formatex(Key,sizeof Key - 1, "%s - LMS:", Name);
nvault_get(Vault,Key,Value,sizeof Value - 1);
nvault_close(Vault);
g_iLastMan[ id ] = str_to_num(Value);
}
how would i do a command to clear ALL data to start from 0 on all players which have been saved in nVault?
EDIT:
tried using this command
Code:
nvault_prune(vault, 0, get_systime() + 1);
but it does nothing why ?
__________________