[AYUDA] TextDraw Alignment
#1

Bueno tengo un problema con el Alignment del Textdraw, se supone que el textdraw deberia ir al centro
pawn Код:
TextDrawAlignment(Textdraw49[playerid], 2);
pero me muestra asн:

Welcome
To
xTreme
Cops
And
Robbers
Cuando deberнa ser asi:
Weltome to
xTreme Cops And Robbers
No se que esta mal, espero me ayuden
Reply
#2

Ponй el create.
Reply
#3

pawn Код:
Textdraw49[playerid] = TextDrawCreate(320.000000, 190.000000,"~w~Welcome to~n~~y~xTreme Cops And Robbers");
TextDrawLetterSize(Textdraw49[playerid],0.199999,0.899999);
TextDrawAlignment(Textdraw49[playerid],2);
TextDrawUseBox(Textdraw49[playerid], 0);
TextDrawTextSize(Textdraw49[playerid],600.000000,0.000000);
TextDrawBackgroundColor(Textdraw49[playerid],0x000000ff);
TextDrawFont(Textdraw49[playerid],2);
TextDrawSetOutline(Textdraw49[playerid],1);
TextDrawSetProportional(Textdraw49[playerid],1);
TextDrawSetShadow(Textdraw49[playerid],1);
Reply
#4

Y si pruebas:

pawn Код:
Textdraw49[playerid] = TextDrawCreate(320.000000, 190.000000,"~w~Welcome ~n~to~n~~y~xTreme ~n~Cops ~n~And~n~ Robbers");
TextDrawLetterSize(Textdraw49[playerid],0.199999,0.899999);
TextDrawAlignment(Textdraw49[playerid],2);
TextDrawUseBox(Textdraw49[playerid], 0);
TextDrawTextSize(Textdraw49[playerid],600.000000,0.000000);
TextDrawBackgroundColor(Textdraw49[playerid],0x000000ff);
TextDrawFont(Textdraw49[playerid],2);
TextDrawSetOutline(Textdraw49[playerid],1);
TextDrawSetProportional(Textdraw49[playerid],1);
TextDrawSetShadow(Textdraw49[playerid],1);
Reply
#5

Intenta con este cуdigo:

pawn Код:
Textdraw49[playerid] = TextDrawCreate(320.000000, 190.000000,"~w~Welcome to~n~~y~xTreme Cops And Robbers");
TextDrawLetterSize(Textdraw49[playerid],0.199999,0.899999);
TextDrawAlignment(Textdraw49[playerid],2);
TextDrawUseBox(Textdraw49[playerid], 0);
TextDrawTextSize(Textdraw49[playerid],0.000000,200.000000);
TextDrawBackgroundColor(Textdraw49[playerid],0x000000ff);
TextDrawFont(Textdraw49[playerid],2);
TextDrawSetOutline(Textdraw49[playerid],1);
TextDrawSetProportional(Textdraw49[playerid],1);
TextDrawSetShadow(Textdraw49[playerid],1);

EDIT: No mencionй que cuando usбs box y no tiene el tamaсo como para contener el texto, йste se muestra como tu dijiste (cada palabra en una lнnea separada).
Reply
#6

Gracias MrDeath! tu codigo me ayudo mucho =P... mil gracias
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)