Vehicle health = Money
#3

Health is a float, you need to round it first to make an integer from it using floatround. Like this:
Код:
new Float:health;
new veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
GivePlayerMoney(playerid, floatround(health) * 10);
Reply


Messages In This Thread
Vehicle health = Money - by Mikueh - 27.03.2017, 14:17
Re: Vehicle health = Money - by ikkentim - 27.03.2017, 14:22
Re: Vehicle health = Money - by GoldenLion - 27.03.2017, 14:25
Re: Vehicle health = Money - by Mikueh - 27.03.2017, 19:48
Re: Vehicle health = Money - by ikkentim - 27.03.2017, 19:59
Re: Vehicle health = Money - by Mikueh - 28.03.2017, 15:53

Forum Jump:


Users browsing this thread: 2 Guest(s)