SA-MP Forums Archive
Help!!! Speedo. Rep+ if helps. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help!!! Speedo. Rep+ if helps. (/showthread.php?tid=401230)



Help!!! Speedo. Rep+ if helps. Still no help - Rgaming - 22.12.2012

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


Re: Help!!! Speedo. Rep+ if helps. - Lapon - 22.12.2012

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


Re: Help!!! Speedo. Rep+ if helps. - Rgaming - 22.12.2012

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


Re: Help!!! Speedo. Rep+ if helps. - Rgaming - 22.12.2012

Can someone help?


Re: Help!!! Speedo. Rep+ if helps. - Lynn - 22.12.2012

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


Re: Help!!! Speedo. Rep+ if helps. - Rgaming - 23.12.2012

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


Re: Help!!! Speedo. Rep+ if helps. - Lynn - 23.12.2012

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.