Raised This Month: $ Target: $400
 0% 

Load data from other file not from vault.ini


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hip_hop_x
Senior Member
Join Date: Apr 2006
Old 06-13-2006 , 17:55  
Reply With Quote #1

Code:
public SaveXP(id)       {       new ip[32];     new vaultkey[64], vaultdata[64];       get_user_ip(id, ip, 31, 1)                     format(vaultkey,63,"Xu mod - %s - class",ip);       format(vaultdata,63,"%d",PlayerClass[id]);       nvault_set(vaultkey, vaultdata)           format(vaultkey,63,"'Xu mod - %s - xp",ip);       format(vaultdata,63,"%d",PlayerXP[id]);       nvault_set(vaultkey,vaultdata);             format(vaultkey,63,"Xu mod - %s - level",ip);       format(vaultdata,63,"%d",PlayerLevel[id]);       nvault_set(vaultkey,vaultdata);   }   public LoadXP(id)       {       new ip[32];     new vaultkey[64], vaultdata[64];             get_user_ip(id, ip, 31, 1)                 format(vaultkey,63,"Xu mod - %s - class",ip);       nvault_get(vaultkey,vaultdata,63);       PlayerClass[id] = str_to_num(vaultdata);             format(vaultkey,63,"Xu mod - %s - xp",ip);       nvault_get(vaultkey,vaultdata,63);       PlayerXP[id] = str_to_num(vaultdata);               format(vaultkey,63,"Xu mod - %s -level",ip);       nvault_get(vaultkey,vaultdata,63);       PlayerLevel[id] = str_to_num(vaultdata);             }

I get error from nvault_set. How can i fix it, or i must use set_vaultdata?
hip_hop_x is offline
Send a message via MSN to hip_hop_x Send a message via Yahoo to hip_hop_x
Reply



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 08:07.


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