SA-MP Forums Archive
Textdraws not showing in right order - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraws not showing in right order (/showthread.php?tid=79849)



Textdraws not showing in right order - NeRoSiS - 31.05.2009

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.


Re: Textdraws not showing in right order - silvan - 31.05.2009

i think for the " underneath " black box you can use a normal box ( not other text draw )


Re: Textdraws not showing in right order - NeRoSiS - 31.05.2009

Normal box?



Re: Textdraws not showing in right order - Gamer007 - 31.05.2009

TextDrawShowForPlayer(playerid,Textdraw1[playerid]);
TextDrawShowForPlayer(playerid,HungerBar[playerid]);

use these when a player spawns


Re: Textdraws not showing in right order - NeRoSiS - 01.06.2009

If you read my first post I have already done that...


Re: Textdraws not showing in right order - silvan - 01.06.2009

i think this will help you alot: http://forum.sa-mp.com/index.php?topic=29132.0

this is not my script but i use it and its very good.