Fuel texdraw shows another textdraw too
#2

Try to hide the Loggin TD when TDFuel is called .

pawn Код:
if (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        new vid = GetPlayerVehicleID(playerid);
        for( new i = 0; i < 12; i++ )
        {
            TextDrawHideForPlayer(playerid, MainMenuTextdraw[i])
        }
        new string[125];format(string,sizeof string,"Fuel:%i",fuel[vid]); //quickly doing a small update on fuel (so it wont jump from 100 to its real value)
        TextDrawSetString(td_fuel[playerid],string);
        TextDrawShowForPlayer(playerid,td_fuel[playerid]); //showing if an player is a driver or passenger of the ar
    } else {
        TextDrawHideForPlayer(playerid,td_fuel[playerid]);
        TextDrawShowForPlayer(playerid, TDLogin etc...);  //hiding if a player isnt driving/or an passenger
    }
// If not works , tell me !
Reply


Messages In This Thread
Fuel texdraw shows another textdraw too - by gnoomen2 - 24.02.2014, 22:04
Re: Fuel texdraw shows another textdraw too - by terrow - 24.02.2014, 22:30
Re: Fuel texdraw shows another textdraw too - by gnoomen2 - 24.02.2014, 23:31
Re: Fuel texdraw shows another textdraw too - by Pottus - 25.02.2014, 01:32

Forum Jump:


Users browsing this thread: 1 Guest(s)