15.10.2012, 01:24
Quote:
Код:
new Float:health, string[128]; GetVehicleHealth(GetPlayerVehicleID(playerid), health); format(string, sizeof(string), "Vehicle Health Lost: %d" 1000-health); SendClientMessage(playerid, -1, string); |
example:
I hit the car and now he was living with in 1000, he lost 100 and got 900, right? But if I hit him again and he lost only 50, see:
First hit: ... "Vehicle Health Lost: 100" 1000-health); / /All Right
Second hit: ... "Vehicle Health Lost: 150" 1000-health);/ / Wrong, because the second hit he lost only 50 and not 150!
Got it? But I appreciate your attempt and if anyone else knows ...