Fuel texdraw shows another textdraw too
#3

Did not work, the same thing again:



I have:

pawn Код:
if (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        new vid = GetPlayerVehicleID(playerid);
        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
        TextDrawHideForPlayer(playerid, MainMenuTxtdraw[playerid]);
    } else {
        TextDrawHideForPlayer(playerid,td_fuel[playerid]); //hiding if a player isnt driving/or an passenger
    }
So i added the one line:
pawn Код:
TextDrawHideForPlayer(playerid, MainMenuTxtdraw[playerid]);
This is the textdraw on the login screen:



Also, when i did /rcon changemode [TheSameGmName] the login texdraw was the same as the second picture, except only the text was there, not the black background behind the text. This happend at the bottom only. Just wanted to add that incase it helps, but when i restarted completely it was like the second picture. I have no idea what to do here.
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: 2 Guest(s)