Help with...ehm floatround
#3

well the problem is I use it to refuel... 1 gallon = 20$... the m = GetPlayerMoney(playerid);
if he has e.g. 46$ I want the system to find out how many gallons the player can get...so:
new Float: p;
p = m/20; //so Money/price;
but now p is no rounded number... it's 2.4
so I want to round down to 2.0
Reply


Messages In This Thread
Help with...ehm floatround - by Sascha - 12.08.2010, 18:33
Re: Help with...ehm floatround - by JaTochNietDan - 12.08.2010, 18:35
Re: Help with...ehm floatround - by Sascha - 12.08.2010, 19:01
Re: Help with...ehm floatround - by JaTochNietDan - 12.08.2010, 19:03

Forum Jump:


Users browsing this thread: 1 Guest(s)