Raised This Month: $ Target: $400
 0% 

Solved [HELP] Percentage error ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 04-19-2020 , 10:50   Re: [HELP] Percentage error ?
Reply With Quote #1

Quote:
Originally Posted by Th3822 View Post
didn't read the full code, just did a quick check on XP_GetByLevel (it wasn't needed tho)
test with:
Code:
			new precentage[33] 
			new neededXP = XP_GetByLevel( p_data[id][P_LEVEL]+1 )
			new currentXP = p_data[id][P_XP]
			new diffXP = XP_GetByLevel( p_data[id][P_LEVEL] )
			precentage[id] = ((float(currentXP - diffXP)/float(neededXP - diffXP))*100.0)
it should work
Damn u did it lmao, thanks bro it worked <3
elmedin 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 00:56.


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