Textdraws not showing in right order
#1

With this I do not get any errors in pawno etcetera, just so you know.

I basically have a green text draw with a black one behind it, the black one is a box, I made it to have a second health bar, which would be for hunger in my RPG mode, the textdrawshow are in the right order, but the black keeps appearing above the green bar.

pawn Код:
HungerBar[playerid] = TextDrawCreate(549.000000,20.000000,"..........");
    TextDrawAlignment(HungerBar[playerid],1);
    TextDrawBackgroundColor(HungerBar[playerid],0x00ff00ff);
    TextDrawFont(HungerBar[playerid],3);
    TextDrawLetterSize(HungerBar[playerid],0.569999,2.549999);
    TextDrawColor(HungerBar[playerid],0x00ff0033);
    TextDrawSetOutline(HungerBar[playerid],1);
    TextDrawSetProportional(HungerBar[playerid],1);
    TextDrawSetShadow(HungerBar[playerid],1);
   
   
    Textdraw1[playerid] = TextDrawCreate(576.000000,37.000000,".");
    TextDrawUseBox(Textdraw1[playerid],1);
    TextDrawBoxColor(Textdraw1[playerid],0x000000ff);
    TextDrawTextSize(Textdraw1[playerid],-2106.000000,55.000000);
    TextDrawAlignment(Textdraw1[playerid],2);
    TextDrawBackgroundColor(Textdraw1[playerid],0x000000ff);
    TextDrawFont(Textdraw1[playerid],3);
    TextDrawLetterSize(Textdraw1[playerid],-0.000000,0.199999);
    TextDrawColor(Textdraw1[playerid],0xffffffff);
    TextDrawSetProportional(Textdraw1[playerid],1);
    TextDrawSetShadow(Textdraw1[playerid],1);
TextDrawShowForPlayer(playerid,Textdraw1[playerid]);
TextDrawShowForPlayer(playerid,HungerBar[playerid]);

Textdraw1 is the black box.

Any help is appreciated,thanks.
Reply


Messages In This Thread
Textdraws not showing in right order - by NeRoSiS - 31.05.2009, 12:17
Re: Textdraws not showing in right order - by silvan - 31.05.2009, 12:26
Re: Textdraws not showing in right order - by NeRoSiS - 31.05.2009, 13:59
Re: Textdraws not showing in right order - by Gamer007 - 31.05.2009, 14:05
Re: Textdraws not showing in right order - by NeRoSiS - 01.06.2009, 16:45
Re: Textdraws not showing in right order - by silvan - 01.06.2009, 21:23

Forum Jump:


Users browsing this thread: 1 Guest(s)