PHP Code:
public SaveData(id)
{
new AuthID[35]
get_user_authid(id,AuthID,34)
new vaultkey[64],vaultdata[256]
// WHY ? AuthId already is a string.
// Why the sufix "-Mod" ? Is not VAULT, It is nvault, it create private files for each VAULT man.
//format(vaultkey,63,"%s-Mod",AuthID)
// You don't need to separate them with '#' put both of the them and use parse();
format(vaultdata,255,"%i#%i#",g_PlayerXP[id],g_PlayerLevel[id])
//nvault_set(vault,vaultkey,vaultdata)
nvault_set( vault, AuthID, vaultdata);
return PLUGIN_CONTINUE
}
__________________