Speedometer help please...
#1

pawn Код:
{
    new vehicle = GetPlayerVehicleID(playerid);
    new status[256];
    new fuel[256];
    new Fuel = VehicleInfo[vehicle][vFuel];
    new Float:health;
    GetVehicleHealth(vehicle,health);
    format(status,256,"Status: ~p~%f",health);
    format(fuel,256,"Fuel: ~b~%d~w~\\l",Fuel);
    TextDrawSetString(Textdraw0,"km/h:");
    TextDrawSetString(Textdraw1,fuel);
    TextDrawSetString(Textdraw2,status);
    TextDrawHideForPlayer(playerid,Textdraw0);
    TextDrawHideForPlayer(playerid,Textdraw1);
    TextDrawHideForPlayer(playerid,Textdraw2);
    TextDrawShowForPlayer(playerid,Textdraw0);
    TextDrawShowForPlayer(playerid,Textdraw1);
    TextDrawShowForPlayer(playerid,Textdraw2);
}
That's my current speedometer... But it doesn't work perfectly... It shows the strings but not the right values...

And how to get a players speed?

Thank you =)
Reply
#2

I didnt work with speedo's before .
But maybey you can download another one and look how they got the speed ?

/Artix
Reply
#3

Don't understand anything when I try to check... First of all, I need help with the status and fuel on the speedo... They doesn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)