Raised This Month: $ Target: $400
 0% 

Nvault problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 12-19-2014 , 01:44   Nvault problem
Reply With Quote #1

I tried to convert a plugin from 'vault' to 'nVault' but its not working properly. It resets data on mapchange/server restart.

PHP Code:
public SaveData(id)
{
    new 
name[35];
    
get_user_name(idname34);
    new 
vaultkey[64], vaultdata[328];
    
    
formatex(vaultkey63"Yo_%s"name);
    
formatex(vaultdata327"%i#"g_Points[id]);
    
    
nvault_setg_Vaultvaultkeyvaultdata)
}

public 
LoadData(id)
{    
    new 
name[35];
    
get_user_name(idname34);
    
    new 
vaultkey[64], vaultdata[328];
    
    
format(vaultkey63"Yo_%s"name);
    
format(vaultdata327"%i#"g_Points[id]);
    
    
nvault_get(g_Vaultvaultkeyvaultdata327)
    
    
    
replace_all(vaultdata327"#"" ");
    new 
g_point[32];
    
parse(vaultdatag_point31);
    
g_Points[id] = str_to_num(g_point);

Syturi0 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode