SA-MP Forums Archive
TextDraw Bugged [Help :P] - 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: TextDraw Bugged [Help :P] (/showthread.php?tid=94277)



TextDraw Bugged [Help :P] - pomogames - 28.08.2009

Help me in that textdraw please...
The Code:
Quote:

tut1 = TextDrawCreate(350.000000,173.000000,"Wellcome to the Lothus Server, have a good game and dont abuse and respect the admins and players.");
TextDrawUseBox(tut1,1);
TextDrawSetProportional(tut1,1);
TextDrawAlignment(tut1,0);
TextDrawBoxColor(tut1,0x00000033);
TextDrawTextSize(tut1,400.000000,800.000000);
TextDrawBackgroundColor(tut1,0x000000ff);
TextDrawFont(tut1,3);
TextDrawLetterSize(tut1,0.700000,0.700000);
TextDrawColor(tut1,0xffffffff);
TextDrawSetProportional(tut1,0);
TextDrawSetShadow(tut1,1);

Screenshot:


A lot of thanks


Re: TextDraw Bugged [Help :P] - Lapside - 28.08.2009

When used with TextDrawAlignment of alignment 3 (right), the x and y are the coordinates of the left most corner of the box. For alignment 2 (center) the x and y values need to inverted (switch the two) and the x value is the overall width of the box. For all other alignments the x and y coordinates are for the right most corner of the box.

if this doesn't help u maybe u would put TextDrawTextSize at the end of the TextDraw formatting things


Re: TextDraw Bugged [Help :P] - pomogames - 28.08.2009

Cam you tell me what is the correct alignment?


Re: TextDraw Bugged [Help :P] - Lapside - 28.08.2009

0 or 1 - left (perhaps one of these is justified)
2 - centred
3 - right

my english is very bad but.. if u have created your textdraw at 400.0 and set the x of TextDrawTextSize to 420.0 then your box would be 20.0 big.. i don't no if this helps u but maybe u have to play with the coordinates, yesterday i've built one and i needed much time until it works..

test it with TextDrawTextSize X=640.0

if this doesn't work, i don't no what 2 do


Re: TextDraw Bugged [Help :P] - Studio - 28.08.2009

Код:
TextDrawUseBox(tut1,0);
if u want to remove the shaded box and just the test to appear.

Or use this

http://forum.sa-mp.com/index.php?topic=95390.0


Re: TextDraw Bugged [Help :P] - pomogames - 28.08.2009

Thank you!
With that APP do textdraw is easy...