Jump to content
  • 0

pomoc Poškození vozidla.


Vidie

Dotaz

7 odpovědí na tuto otázku

Recommended Posts

  • 0

new Float:healthOfCar;
GetVehicleHealth(GetPlayerVehicleID(playerid),healthOfCar);
new Float:getDestroyed = healthOfCar / 10 + 100 - ( 2 * ( healthOfCar / 10 ));
new str[128];
format(str,sizeof(str),"Auto máš zničené asi z %d procent!!",floatround(getDestroyed));
SendClientMessage(playerid,-1,str);

 

Obyčejná matematika, nic jiného v tom není..

Link to comment
Share on other sites

  • 0

new Float:healthOfCar;
GetVehicleHealth(GetPlayerVehicleID(playerid),healthOfCar);
new Float:getDestroyed = 100 - (healthOfCar / 10);
new str[128];
format(str,sizeof(str),"Auto máš zničené asi z %d procent!!",floatround(getDestroyed));
SendClientMessage(playerid,-1,str);

 

nedalo by sa to aj takto?

Link to comment
Share on other sites

  • 0

To GetVehicleHealth vracia (keď nemá poškodenie auto) 1000 (hp) keď to vydelíš 10timi tak ti zostane 100. A ak som pochopil tomu 100-(health/10) tak by ukazovalo 0. Sprav to podľa QWERa

Link to comment
Share on other sites

  • 0
To GetVehicleHealth vracia (keď nemá poškodenie auto) 1000 (hp) keď to vydelíš 10timi tak ti zostane 100. A ak som pochopil tomu 100-(health/10) tak by ukazovalo 0. Sprav to podľa QWERa

 

 

Ale jestli sis přečetl HELP tak by ti to mohlo dojít, že já a Glamorous máme to co on chce.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...