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
#2

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

Normal box?
Reply
#4

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

use these when a player spawns
Reply
#5

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)