Raised This Month: $ Target: $400
 0% 

Pls Help Saving Rank&Exp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
codysermina
Junior Member
Join Date: Aug 2011
Location: Denmark
Old 09-30-2011 , 13:15   Pls Help Saving Rank&Exp
Reply With Quote #1

Hello, i really want help saving the ranks and exp when disconnect, how do i do that on this plugin?:
DELETED
p.s. i tryed self, but it didnt work on public SaveData(id) & public LoadData(id)

iXP[id] is XP

RANKS[iRank[id]] is Rank, i will be very happy if someone could make it!!!

Last edited by codysermina; 10-04-2011 at 12:25.
codysermina is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-30-2011 , 14:29   Re: Pls Help Saving Rank&Exp
Reply With Quote #2

PHP Code:
    num_to_str(iRank[id], szTempRankcharsmax(szTempRank))
    
num_to_str(iXP[id], szTempXPcharsmax(szTempXP))
    
    
formatex(vaultdata255"%i %i"szTempRankszTempXP[id]) 
=>
PHP Code:
formatex(vaultdata255"%i %i"iRank[id], iXP[id]); 
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
codysermina
Junior Member
Join Date: Aug 2011
Location: Denmark
Old 09-30-2011 , 17:11   Re: Pls Help Saving Rank&Exp
Reply With Quote #3

Quote:
Originally Posted by drekes View Post
PHP Code:
    num_to_str(iRank[id], szTempRankcharsmax(szTempRank))
    
num_to_str(iXP[id], szTempXPcharsmax(szTempXP))
    
    
formatex(vaultdata255"%i %i"szTempRankszTempXP[id]) 
=>
PHP Code:
formatex(vaultdata255"%i %i"iRank[id], iXP[id]); 
It still will not save
codysermina is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 10-01-2011 , 16:12   Re: Pls Help Saving Rank&Exp
Reply With Quote #4

Hm... If num_to_str converts a num to a string I don't think it should be %i
So either try it with %s's... Or simply try only using:
PHP Code:
formatex(vaultdata255"%i %i"iRank[id], iXP[id]); 
Erox902 is offline
codysermina
Junior Member
Join Date: Aug 2011
Location: Denmark
Old 10-03-2011 , 11:34   Re: Pls Help Saving Rank&Exp
Reply With Quote #5

Quote:
Originally Posted by Erox902 View Post
Hm... If num_to_str converts a num to a string I don't think it should be %i
So either try it with %s's... Or simply try only using:
PHP Code:
formatex(vaultdata255"%i %i"iRank[id], iXP[id]); 
not working :/ tryed %s and %i...i don't think it that
codysermina is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 10-03-2011 , 12:48   Re: Pls Help Saving Rank&Exp
Reply With Quote #6

Quote:
Originally Posted by codysermina View Post
not working :/ tryed %s and %i...i don't think it that
Did you try removing the num_to_str's and temp variables and only use this?
PHP Code:
formatex(vaultdata255"%i %i"iRank[id], iXP[id]); 
Cuz' that should work

Otherwise try setting the functions public

Last edited by Erox902; 10-03-2011 at 12:50.
Erox902 is offline
codysermina
Junior Member
Join Date: Aug 2011
Location: Denmark
Old 10-04-2011 , 12:24   Re: Pls Help Saving Rank&Exp
Reply With Quote #7

Lol, i used a another SaveData and LoadData, it now working, but anyways - thanks for the ideas and your time
codysermina is offline
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 19:39.


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