SA-MP Forums Archive
Preview textdraw - 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: Preview textdraw (/showthread.php?tid=491287)



Preview textdraw - nickstar - 30.01.2014

Here is my code i have no errors but In game I do the command and its in the wrong position

here is a picture http://prntscr.com/2nuewn

Can anyone help?

Код:
        Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 139.500000, 3.250000, "usebox");
   	PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.000000, 10.118519);
	PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 100, 100);
	PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw0[playerid], 0);
	PlayerTextDrawUseBox(playerid, Textdraw0[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], 0x000000FF);
	PlayerTextDrawFont(playerid, Textdraw0[playerid],TEXT_DRAW_FONT_MODEL_PREVIEW);
	PlayerTextDrawSetSelectable(playerid, Textdraw0[playerid], true);
	PlayerTextDrawSetPreviewModel(playerid, Textdraw0[playerid], 404);
	PlayerTextDrawSetPreviewVehCol(playerid, Textdraw0[playerid], 128, 128);
	PlayerTextDrawSetPreviewRot(playerid, Textdraw0[playerid], -10.0, 0.0, -20.0, 1.0);
	PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], COLOR_BLACK);



Re: Preview textdraw - iOxide - 30.01.2014

Well, about the coord of the TextDraw, i would suggest you to use Zamaroht's TextDraw editor. It will give you a perfect position. There are other too but this one is my suggestion.


Re: Preview textdraw - Excelize - 30.01.2014

Yes, Zamaroth's TD Editor is the best in my opinion, really easy to use, even for newbies!


Re: Preview textdraw - nickstar - 30.01.2014

Alright guys ill try it