Raised This Month: $ Target: $400
 0% 

how to display the remaining exp?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kendra
Senior Member
Join Date: Feb 2011
Location: Chile
Old 07-10-2012 , 00:53   how to display the remaining exp?
Reply With Quote #1

Code:
print_chatColor(id, "\g[SuperHeroChile]\n Nick: \t%s\n, EXP: \g%d/%d\n, LEVEL: \g%d\n", name, sh_get_user_xp(id),NATIVE(?) , sh_get_user_lvl(id))
which is the native experience to the next level remaining?

when I put the sh_get_lvl_xp(id) is bug
Code:
[SuperHeroChile] Nick: bonini;p, EXP: 524256/800, LEVEL: 31

Last edited by kendra; 07-10-2012 at 01:48.
kendra is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 07-10-2012 , 09:14   Re: how to display the remaining exp?
Reply With Quote #2

sh_get_user_xp(id) + sh_get_lvl_xp(id)
from what I understood sh_get_lvl_xp should return how much the player needs for next level so add to current xp to get what you want.
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
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 10:50.


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