[Ajuda] GetVehicleHealth
#3

Vocк formatou errado, em seu printf vocк usou "%d" que serve para nъmeros inteiros, porйm deve usar "%f" que й usado para mostrar "Float". Deste modo:

PHP код:
      new Float:lataria;
            
GetVehicleHealth(MotoAutoEsc[playerid], lataria);
            if(
lataria 900){
               
printf("Vida do carro: %f"lataria);
            
DisablePlayerRaceCheckpoint(playerid);
                    ...
                      } 
Reply


Messages In This Thread
GetVehicleHealth - by iLordGG - 16.01.2017, 22:07
Programando e Gambiarrando! - by RazorGuigo - 16.01.2017, 22:14
Re: GetVehicleHealth - by DiegoLeo - 16.01.2017, 22:14
Re: GetVehicleHealth - by iLordGG - 16.01.2017, 22:15
Re: GetVehicleHealth - by CharlieSanchez - 16.01.2017, 23:51

Forum Jump:


Users browsing this thread: 1 Guest(s)