TextDraw Bugged [Help :P]
#1

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

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
Reply
#3

Cam you tell me what is the correct alignment?
Reply
#4

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
Reply
#5

Код:
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
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)