SA-MP Forums Archive
TextDraw shifts to the right (PreviewModel) - 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 shifts to the right (PreviewModel) (/showthread.php?tid=541587)



TextDraw shifts to the right (PreviewModel) - VaReNiX - 12.10.2014

Sorry for my bad English, I will try to speak it

Problem: when using TextDrawSetPreviewModel, TextDraw shifts to the right

When created:
http://i.imgur.com/5T19M2d.png
Using TextDrawSetPreviewModel:
http://i.imgur.com/s4chzJI.png
(Picture too large)

What could be the problem?

Code one of TextDraw:
Код:
	TextDrawSelection[15] = TextDrawCreate(182.000213, 166.264404, "usebox");
	TextDrawTextSize(TextDrawSelection[15], 88.000015, 102.542236);
	TextDrawUseBox(TextDrawSelection[15], true);
	TextDrawBoxColor(TextDrawSelection[15], 102);
	TextDrawFont(TextDrawSelection[15], 5);
	TextDrawBackgroundColor(TextDrawSelection[15], 0xFFFFFF33);
	TextDrawSetSelectable(TextDrawSelection[15], true);



Re: TextDraw shifts to the right (PreviewModel) - alanhutch - 12.10.2014

Show the code when you show the TextDraw.


Re: TextDraw shifts to the right (PreviewModel) - VaReNiX - 13.10.2014

Quote:
Originally Posted by alanhutch
Посмотреть сообщение
Show the code when you show the TextDraw.
Код:
TextDrawSetPreviewModel(TextDrawSelection[15], 1);
TextDrawShowForPlayer(playerid, TextDrawSelection[15]);



Re: TextDraw shifts to the right (PreviewModel) - VaReNiX - 15.10.2014

The problem is relevant