speedo and fuel problem
#2

Try just GetPlayerState.
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            new string[128], speed = GetVehicleSpeed(GetPlayerVehicleID(playerid), 0);
            format(string, sizeof(string), "~g~Fuel: ~w~%d", Fuel[vehicleid]);
            TextDrawSetString(FuelTD, string);
              TextDrawShowForPlayer(playerid, FuelTD);
            format(string, sizeof(string), "~r~KPH: ~w~%d", speed);
            TextDrawSetString(SpeedoTD, string);
              TextDrawShowForPlayer(playerid, SpeedoTD);

        }
Reply


Messages In This Thread
speedo and fuel problem - by bensmart469 - 22.12.2012, 14:45
Re: speedo and fuel problem - by Faisal_khan - 22.12.2012, 15:04
Re: speedo and fuel problem - by bensmart469 - 22.12.2012, 15:19
Re: speedo and fuel problem - by Lordzy - 22.12.2012, 15:39

Forum Jump:


Users browsing this thread: 1 Guest(s)