Help!!! Speedo. Rep+ if helps.
#1

Hi.
I have a speedo and fuel meter in script. If I put fuel meter on the spedometerturs off how to fix it.

// Spidoka
if(Speedo[playerid] && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new string[64], speed = GetVehicleSpeed(GetPlayerVehicleID(playerid), 1);
format(string,sizeof(string),"Speed: ~q~%dkm/h", speed);
GameTextForPlayer(playerid, string,1000, 3);
}
//Admini kiiruse hoiatus
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !aDuty[playerid])
{
new speed = GetVehicleSpeed(GetPlayerVehicleID(playerid), 0);
if(speed > 290 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 519 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 553 || speed > 300)
{
new string[128];
format(string, sizeof(string), "AdmWarn: %s might be using speed hacks (%d MPH)", RPN(playerid), speed);
SendAdminMessage(COLOR_DARKRED, 1, string);
}
}
// Kьte
if(fMeter[playerid] && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new string[64];
format(string,sizeof(string),"~n~~n~~n~~n~~n~~n~~n ~~n~~r~Fuel: ~w~%d%", Fuel[GetPlayerVehicleID(playerid)]);
GameTextForPlayer(playerid, string,1000, 3);
}



I tried many ways but nothing.. Sorry for bad english Im estonian
Reply
#2

I don't clearly understand what you want . Please can you tell a bit more clearly so i can help you?
Reply
#3

I want them both working at same time but they dont
maybe you can positionate to the right corner if you have that time :P
Reply
#4

Can someone help?
Reply
#5

You can only use one GameTextForPlayer(); at a time.
In-order to have both showing at the same time, make a textdraw for it.
Reply
#6

How do I make them can you make them for me?
If you do PM me.
Reply
#7

I will make them for you latter today.
I'm on my I-Mac right now so when I get home and have access to my PC I'll do it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)