Raised This Month: $ Target: $400
 0% 

Arguments not finishing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Zenith77
Veteran Member
Join Date: Aug 2005
Old 02-16-2007 , 22:21   Re: Arguments not finishing
Reply With Quote #6

How can you not get 10 percent of a number? There are plenty of ways...

One being:
Code:
// Assuming you're var is a cell and needs converting: new Float:maxAmount = float(var) * 0.10; // 10 percent :o. if (xpToTransfer > _:maxAmount) {      new takeAway = xpToTransfer - _:maxAmount;      new amount = xpToTransfer - takeAway;      // ta da }

(My math may be a little off [and code for that matter], I'm half asleep :-) )
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred

Last edited by Zenith77; 02-16-2007 at 22:26.
Zenith77 is offline
 



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:36.


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