Raised This Month: $ Target: $400
 0% 

Negative Sign on Needed Amount


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-25-2010 , 22:58   Re: Negative Sign on Needed Amount
Reply With Quote #1

You made a simple mistake with your math, chief.

You should be using ( cost - exp ) to determine xp needed.

Example:

Cost = 500
Exp = 300

500 - 300 = 200

What you are doing:

Exp - cost

300 - 500 = -200
__________________

Last edited by Bugsy; 07-25-2010 at 23:11.
Bugsy is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-25-2010 , 23:05   Re: Negative Sign on Needed Amount
Reply With Quote #2

Exactly bugsy. Lol, common sense, the only thing that would make it negative is the subtraction. Changing the > sign won't change the value of it, it would just change who it's showed to.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
infek
Senior Member
Join Date: May 2009
Location: Behind you
Old 07-25-2010 , 23:16   Re: Negative Sign on Needed Amount
Reply With Quote #3

holy, i didnt think of the subtraction. >_< Well thanks bugsys.
__________________
"Domo Arigato, Mr. Roboto!"
PM me if you want to know a secret
infek 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:18.


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