12.08.2010, 19:01
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
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