Vehicle health = Money
#1

Hello!

How can I give the player money which is the exact same amount as the vehicle health?

Код:
new Float:health;
new veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
GivePlayerMoney(playerid, health * 10);
That's what I've got so far, but it's gives me a tag mismatch warning for the GivePlayerMoney line, and also, in-game the money just goes, infinite, I guess... The numbers just goes up and up. So it would be like if the vehicle have like 980HP the player will get $9800.

Thank you for the help!
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: 1 Guest(s)