Raised This Month: $ Target: $400
 0% 

How to fix this code? Xp isn't loading/saving


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 06-27-2006 , 21:40   Re: How to fix this code?
Reply With Quote #1

You need to change your LoadXP Fucntion to this:
Code:
public LoadXP(id)     {     get_user_ip(id, ip, 31, 1)         /*     //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);    */             PlayerClass[id] = str_to_num(vaultdata)     PlayerXP[id] =  str_to_num(vaultdata)     PlayerLevel[id] = str_to_num(vaultdata)     get_vaultdata(vaultkey,vaultdata,63) }

To:
Code:
public LoadXP(id)     {     get_user_ip(id, ip, 31, 1)         /*     //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);    */         get_vaultdata(vaultkey,vaultdata,63)     PlayerClass[id] = str_to_num(vaultdata)     PlayerXP[id] =  str_to_num(vaultdata)     PlayerLevel[id] = str_to_num(vaultdata) }

Also keep in mind with that, that PlayerClass, PlayerXP, and PlayerLevel will all be the same value. You should use your commented code to retrive and store your data properly.
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Xum
Member
Join Date: Jun 2006
Old 06-28-2006 , 07:47   Re: How to fix this code?
Reply With Quote #2

Thank you very much, but doesn't work . Menu still apears, and i don't get xp after i kill the enemy.

Last edited by Xum; 06-28-2006 at 08:09.
Xum is offline
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 06-28-2006 , 08:57   Re: How to fix this code?
Reply With Quote #3

Maybe you spellt something important wrong, I saw some unimportant spelling errors like wich instead of which and allready instead of already. With this I am supposing you just replaced key phrases in Xuntrics code and added extra stuff. One thing I'd suggest is wait for another XP mod tutorial to come out, this one simply doesnt work so well.
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
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:01.


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