SA-MP Forums Archive
Textdraw is behind of Box - 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)
+--- Thread: Textdraw is behind of Box (/showthread.php?tid=366292)



Textdraw is behind of Box - Unstoppable - 05.08.2012



As, you can see the text is behind of Box.

Here is the script:

This is under OnGameModeInit

Код:
TDV_Hitman[0] = TextDrawCreate(100.000000, 137.000000, "~g~hitman");
	TextDrawBackgroundColor(TDV_Hitman[0], 255);
	TextDrawFont(TDV_Hitman[0], 3);
	TextDrawLetterSize(TDV_Hitman[0], 0.470000, 0.899999);
	TextDrawColor(TDV_Hitman[0], -1);
	TextDrawSetOutline(TDV_Hitman[0], 1);
	TextDrawSetProportional(TDV_Hitman[0], 1);

	TDV_Hitman[1] = TextDrawCreate(133.000000, 160.000000, "Complete Hit Contracts For Money~n~~n~~y~/hits ~w~- List Current Hit Contracts~n~~y~/loc [nick/id] ~w~- Display Player Location Information");
	TextDrawAlignment(TDV_Hitman[1], 2);
	TextDrawBackgroundColor(TDV_Hitman[1], 255);
	TextDrawFont(TDV_Hitman[1], 1);
	TextDrawLetterSize(TDV_Hitman[1], 0.270000, 0.899999);
	TextDrawColor(TDV_Hitman[1], -1);
	TextDrawSetOutline(TDV_Hitman[1], 1);
	TextDrawSetProportional(TDV_Hitman[1], 1);
	
	TDV_Hitman[2] = TextDrawCreate(267.000000, 126.000000, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
	TextDrawBackgroundColor(TDV_Hitman[2], 255);
	TextDrawFont(TDV_Hitman[2], 1);
	TextDrawLetterSize(TDV_Hitman[2], 0.500000, 1.000000);
	TextDrawColor(TDV_Hitman[2], -1);
	TextDrawSetOutline(TDV_Hitman[2], 0);
	TextDrawSetProportional(TDV_Hitman[2], 1);
	TextDrawSetShadow(TDV_Hitman[2], 1);
	TextDrawUseBox(TDV_Hitman[2], 1);
	TextDrawBoxColor(TDV_Hitman[2], 119);
	TextDrawTextSize(TDV_Hitman[2], 2.000000, 0.000000);
This is under command /test

Код:
TextDrawShowForPlayer(playerid, TDV_Hitman[2]);
	TextDrawShowForPlayer(playerid, TDV_Hitman[0]);
    TextDrawShowForPlayer(playerid, TDV_Hitman[1]);



Re: Textdraw is behind of Box - RelaxCafe - 05.08.2012

Put this before the other ones..
Код:
TDV_Hitman[2] = TextDrawCreate(267.000000, 126.000000, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
	TextDrawBackgroundColor(TDV_Hitman[2], 255);
	TextDrawFont(TDV_Hitman[2], 1);
	TextDrawLetterSize(TDV_Hitman[2], 0.500000, 1.000000);
	TextDrawColor(TDV_Hitman[2], -1);
	TextDrawSetOutline(TDV_Hitman[2], 0);
	TextDrawSetProportional(TDV_Hitman[2], 1);
	TextDrawSetShadow(TDV_Hitman[2], 1);
	TextDrawUseBox(TDV_Hitman[2], 1);
	TextDrawBoxColor(TDV_Hitman[2], 119);
	TextDrawTextSize(TDV_Hitman[2], 2.000000, 0.000000);



AW: Textdraw is behind of Box - Unstoppable - 23.11.2012

Can someone help me, the problem still.
It was working earlier with the same code, after 1 month it's changed. i don't know why.


AW: Textdraw is behind of Box - Skimmer - 23.11.2012

I don't see any problem there, it works fine on my Server, maybe you should restart your server?


Re: Textdraw is behind of Box - Unstoppable - 23.11.2012

Tried already, but it doesn't work.