Raised This Month: $ Target: $400
 0% 

Load data from other file not from vault.ini


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hip_hop_x
Senior Member
Join Date: Apr 2006
Old 06-13-2006 , 06:22   Load data from other file not from vault.ini
Reply With Quote #1

Code:
public SaveXP(id)     {     new ip[32];     new vaultkey[64], vaultdata[64];       new configDir[128];     get_user_ip(id, ip, 31, 1)                 format(gXpfile, 127, "%s/xu/lvl.ini", configDir);       format(vaultkey,63,"Xu mod-%s-class",ip);       format(vaultdata,63,"%d",PlayerClass[id]);       set_vaultdata(vaultkey,vaultdata);           format(vaultkey,63,"'Xu mod-%s-xp",ip);       format(vaultdata,63,"%d",PlayerXP[id]);       set_vaultdata(vaultkey,vaultdata);           format(vaultkey,63,"Xu mod-%s-level",ip);       format(vaultdata,63,"%d",PlayerLevel[id]);       set_vaultdata(vaultkey,vaultdata); }   public LoadXP(id)     {     new ip[32];     new configDir[128];     new vaultkey[64], vaultdata[64];           get_user_ip(id, ip, 31, 1)             get_datadir(configDir, 127);     format(gXpfile, 127, "%s/xu/lvl.ini", configDir);         format(vaultkey,63,"Xu mod-%s-class",ip);       get_vaultdata(vaultkey,vaultdata,63);       PlayerClass[id] = str_to_num(vaultdata);           format(vaultkey,63,"Xu mod-%s-xp",ip);       get_vaultdata(vaultkey,vaultdata,63);       PlayerXP[id] = str_to_num(vaultdata);             format(vaultkey,63,"Xu mod-%s-level",ip);       get_vaultdata(vaultkey,vaultdata,63);     PlayerLevel[id] = str_to_num(vaultdata);     }

How to load the data from other file?

I think i should chage get_vaultdata with other, but i don't know with what.
hip_hop_x is offline
Send a message via MSN to hip_hop_x Send a message via Yahoo to hip_hop_x
 



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