SA-MP Forums Archive
TextDraw Problem - 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 Problem (/showthread.php?tid=526754)



TextDraw Problem - FullCircle - 19.07.2014

Код:
TD_INICIO_ENTRAR = TextDrawCreate(255.666717, 153.525878, "Entrar");
TextDrawLetterSize(TD_INICIO_ENTRAR, 0.549999, 2.056296);
TextDrawAlignment(TD_INICIO_ENTRAR, 1);
TextDrawColor(TD_INICIO_ENTRAR, 0xA3B4C5FF);
TextDrawSetShadow(TD_INICIO_ENTRAR, 0);
TextDrawSetOutline(TD_INICIO_ENTRAR, 1);
TextDrawBackgroundColor(TD_INICIO_ENTRAR, 51);
TextDrawFont(TD_INICIO_ENTRAR, 1);
TextDrawSetProportional(TD_INICIO_ENTRAR, 1);
TextDrawSetSelectable(TD_INICIO_ENTRAR, true);

TD_INICIO_REGISTRAR = TextDrawCreate(255.666717, 193.525878, "Registrarse");
TextDrawLetterSize(TD_INICIO_REGISTRAR, 0.549999, 2.056296);
TextDrawAlignment(TD_INICIO_REGISTRAR, 1);
TextDrawColor(TD_INICIO_REGISTRAR, 0xA3B4C5FF);
TextDrawSetShadow(TD_INICIO_REGISTRAR, 0);
TextDrawSetOutline(TD_INICIO_REGISTRAR, 1);
TextDrawBackgroundColor(TD_INICIO_REGISTRAR, 51);
TextDrawFont(TD_INICIO_REGISTRAR, 1);
TextDrawSetProportional(TD_INICIO_REGISTRAR, 1);
TextDrawSetSelectable(TD_INICIO_REGISTRAR, true);
I read that you can change the text size, but when I edit, I can not put in the right place.
What would be the place?
Thanks


Re: TextDraw Problem - Laure - 19.07.2014

You havent applied the textsize function there add it like

pawn Код:
TextDrawTextSize(TD_INICIO_REGISTRAR, 0.500, 0.600);



Respuesta: Re: TextDraw Problem - FullCircle - 19.07.2014

Quote:
Originally Posted by Laure
Посмотреть сообщение
You havent applied the textsize function there add it like

pawn Код:
TextDrawTextSize(TD_INICIO_REGISTRAR, 0.500, 0.600);
Doesn't work


Re: TextDraw Problem - rockhopper - 19.07.2014

What do u wanna change ?


Respuesta: Re: TextDraw Problem - FullCircle - 19.07.2014

Quote:
Originally Posted by rockhopper
Посмотреть сообщение
What do u wanna change ?
If:

Код:
TextDrawTextSize(TD_INICIO_ENTRAR, 270.000000, 270.000000);
TextDrawTextSize(TD_INICIO_REGISTRAR, 270.000000, 270.000000);
Look like this:

Imagen 1a
Imagen 2a

But this...

Код:
TextDrawTextSize(TD_INICIO_ENTRAR, 150.000000, 270.000000);
TextDrawTextSize(TD_INICIO_REGISTRAR, 150.000000, 270.000000);
Look like this:

Imagen 1b


Respuesta: TextDraw Problem - FullCircle - 21.07.2014

Somebody?


Respuesta: TextDraw Problem - FullCircle - 22.07.2014

Solved: I Change TextDrawAlignment to 2 (center)