Thread: [Solved] Level XP System
View Single Post
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 11-21-2016 , 08:17   Re: Level XP System
Reply With Quote #4

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_setvaultAuthIDvaultdata);
    return 
PLUGIN_CONTINUE  

__________________
Project: Among Us

Last edited by Craxor; 11-21-2016 at 08:17.
Craxor is offline
Send a message via ICQ to Craxor