Vehicle health state
#3

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
That should work.
pawn Код:
GetVehicleHealth(vehicleid, vehiclehealth);
        format(HPString, sizeof(HPString), "~w~Damage: %.0f", vehiclehealth);//You should use .0f to get the correct percentage.
        if(vehiclehealth < 300)
        {
            new engine,lights,alarm,doors,bonnet,boot,objective;
            GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
            SetVehicleParamsEx(vehicleid, 0, 0, alarm, doors, bonnet, boot, objective);
            TextDrawSetString(APlayerData[playerid][VHealth], "~r~Engine broken");
       
        }
Why are you using TextDrawSetString if you aren't passing any string after [VHealth]?
Reply


Messages In This Thread
Vehicle health state - by iOxide - 14.01.2014, 09:33
Re: Vehicle health state - by SilentSoul - 14.01.2014, 09:41
Re: Vehicle health state - by Face9000 - 14.01.2014, 09:46
Re: Vehicle health state - by SilentSoul - 14.01.2014, 09:48
Re: Vehicle health state - by iOxide - 14.01.2014, 09:50
Re: Vehicle health state - by SilentSoul - 14.01.2014, 09:56
Re: Vehicle health state - by Vince - 14.01.2014, 10:02
Re: Vehicle health state - by iOxide - 14.01.2014, 10:39

Forum Jump:


Users browsing this thread: 2 Guest(s)