TextDraw Problem :/
#1

Hi guys, recently i added a textdraw and it worked perfectly, now i tried to copy and paste the same code for the textdraw and set the cordinates of where the new one need to be, and for some reason the TextBox behind the text don't wanna show ... here is the both textdraws:

Original Textdraw which the textbox works behind the text:

Код:
		PlayerInfo[playerid][lbllightstext] = TextDrawCreate(173.000000,362.000000,"L");
		TextDrawUseBox(PlayerInfo[playerid][lbllightstext],1);
		TextDrawBoxColor(PlayerInfo[playerid][lbllightstext],0x000000cc);
		TextDrawTextSize(PlayerInfo[playerid][lbllightstext],178.000000,-9.000000);
		TextDrawAlignment(PlayerInfo[playerid][lbllightstext],0);
		TextDrawBackgroundColor(PlayerInfo[playerid][lbllightstext],0x000000ff);
		TextDrawFont(PlayerInfo[playerid][lbllightstext],2);
		TextDrawLetterSize(PlayerInfo[playerid][lbllightstext],0.199999,0.899999);
		TextDrawColor(PlayerInfo[playerid][lbllightstext],0xffffffff);
		TextDrawSetOutline(PlayerInfo[playerid][lbllightstext],1);
		TextDrawSetProportional(PlayerInfo[playerid][lbllightstext],1);
		TextDrawSetShadow(PlayerInfo[playerid][lbllightstext],1);
This is the textdraw i copied and paste and set the cordinates of first line only. other lines are exactly the same but i dunno why the textdraw dont show up for this one.

Код:
		PlayerInfo[playerid][lblhazardstext] = TextDrawCreate(181.000000,362.000000,"H");
		TextDrawUseBox(PlayerInfo[playerid][lblhazardstext],1);
		TextDrawBoxColor(PlayerInfo[playerid][lblhazardstext],0x000000cc);
		TextDrawTextSize(PlayerInfo[playerid][lblhazardstext],178.000000,-9.000000);
		TextDrawAlignment(PlayerInfo[playerid][lblhazardstext],0);
		TextDrawBackgroundColor(PlayerInfo[playerid][lblhazardstext],0x000000ff);
		TextDrawFont(PlayerInfo[playerid][lblhazardstext],2);
		TextDrawLetterSize(PlayerInfo[playerid][lblhazardstext],0.199999,0.899999);
		TextDrawColor(PlayerInfo[playerid][lblhazardstext],0xffffffff);
		TextDrawSetOutline(PlayerInfo[playerid][lblhazardstext],1);
		TextDrawSetProportional(PlayerInfo[playerid][lblhazardstext],1);
		TextDrawSetShadow(PlayerInfo[playerid][lblhazardstext],1);
If you guys would help me I really appriciate it and also i'll + rep to those that try to help.
Reply
#2

Do you have a timer on them
Reply
#3

no they just them and then a normal show textdraw for player
Reply
#4

Do you have them set to not conflict


new PlayerText:YourTextDraw[MAX_PLAYERS] = {PlayerText:INVALID_TEXT_DRAW, ...};

If not this calls on a different names.. so you may get some errors...

I know i hate links But Read the first few lines on the top you will understand It tell you how to keep them from conflicting could be an issue for you.. https://sampwiki.blast.hk/wiki/Textdraw

Or just do this No name changing

new Text:gMyText = Text:INVALID_TEXT_DRAW;

Then try your textdraws again
Reply
#5

i make them different variables if that is what you mean...
Reply
#6

can someone help me with this please?
Reply
#7

guys?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)