SA-MP Forums Archive
[Ajuda] Problemas com textdraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Problemas com textdraw (/showthread.php?tid=512990)



Problemas com textdraw - Luucass - 13.05.2014

bom pessoal fiz uma textdraw com o zamaroth e por fim dps q eu exporto e coloco ela no gm ela fica torta

Imagem de Como Deve ficar :

e Como ficou :


Codigo das text draw

pawn Код:
// topo:
new Text:Textdraw2;
new PlayerText:Textdraw3[MAX_PLAYERS] = {PlayerText:INVALID_TEXT_DRAW, ...};

// em on player conect:
Textdraw2 = TextDrawCreate(4.000000, 431.000000, "SCORE");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 3);
TextDrawLetterSize(Textdraw2, 0.460000, 1.200000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);

Textdraw3[playerid] = CreatePlayerTextDraw(playerid,5.000000, 417.000000, "-=-");
PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 2);
PlayerTextDrawColor(playerid, Textdraw3[playerid], -1);
PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw3[playerid], 255);
PlayerTextDrawFont(playerid, Textdraw3[playerid], 3);
PlayerTextDrawSetProportional(playerid, Textdraw3[playerid], 1);
PlayerTextDrawShow(playerid, Textdraw3[playerid]);

Alguem pode ajudar ?


Re: Problemas com textdraw - DogeMan - 13.05.2014

Oque q ta torto?


Re: Problemas com textdraw - Luucass - 13.05.2014

Quote:
Originally Posted by DogeMan
Посмотреть сообщение
Oque q ta torto?
no caso ali meu score й 571 ali so aparece o 71 e nao estar centralizado

o texto score nao aparece esta pro lado esquerdo, creio q seja um bug pois no zamaroth estar perfeito


Re: Problemas com textdraw - DogeMan - 13.05.2014

CreatePlayerTextDraw(playerid, x, y, "exemplo");

Muda os valores X e Y atй arrumas.

@por isso que nгo apoio a ideia de usar editores de textdraw's antes de saber fazer na raзa. Da nisso ai...


Re: Problemas com textdraw - DoN_ReNaTo - 13.05.2014

tenta ae:

pawn Код:
Textdraw0 = TextDrawCreate(2.000000, 415.000000, "9999");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);

Textdraw1 = TextDrawCreate(4.000000, 427.000000, "Score");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.519999, 1.500000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
muda os nomes pro nome das suas textdraws