SA-MP Forums Archive
PlayerTextDrawSetPreviewRot don't work - 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: PlayerTextDrawSetPreviewRot don't work (/showthread.php?tid=584736)



PlayerTextDrawSetPreviewRot don't work - ax1 - 07.08.2015

Код:
InvScrollDown[0][playerid] = CreatePlayerTextDraw(playerid, 616.573852, 389.083251, "hud:radar_centre");
PlayerTextDrawLetterSize(playerid, InvScrollDown[0][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, InvScrollDown[0][playerid], 8.433380, 20.999986);
PlayerTextDrawAlignment(playerid, InvScrollDown[0][playerid], 1);
PlayerTextDrawColor(playerid, InvScrollDown[0][playerid], -1);
PlayerTextDrawSetShadow(playerid, InvScrollDown[0][playerid], 0);
PlayerTextDrawSetOutline(playerid, InvScrollDown[0][playerid], 0);
PlayerTextDrawFont(playerid, InvScrollDown[0][playerid], 4);
PlayerTextDrawSetPreviewRot(playerid, InvScrollDown[0][playerid], 0.0, 0.0, 90.0, 0.0);
I want this textdraw to be upside down, but PlayerTextDrawSetPreviewRot function don't work.


Re: PlayerTextDrawSetPreviewRot don't work - prineside - 07.08.2015

Quote:
Originally Posted by ax1
Посмотреть сообщение
Код:
InvScrollDown[0][playerid] = CreatePlayerTextDraw(playerid, 616.573852, 389.083251, "hud:radar_centre");
PlayerTextDrawLetterSize(playerid, InvScrollDown[0][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, InvScrollDown[0][playerid], 8.433380, 20.999986);
PlayerTextDrawAlignment(playerid, InvScrollDown[0][playerid], 1);
PlayerTextDrawColor(playerid, InvScrollDown[0][playerid], -1);
PlayerTextDrawSetShadow(playerid, InvScrollDown[0][playerid], 0);
PlayerTextDrawSetOutline(playerid, InvScrollDown[0][playerid], 0);
PlayerTextDrawFont(playerid, InvScrollDown[0][playerid], 4);
PlayerTextDrawSetPreviewRot(playerid, InvScrollDown[0][playerid], 0.0, 0.0, 90.0, 0.0);
I want this textdraw to be upside down, but PlayerTextDrawSetPreviewRot function don't work.
The description of PlayerTextDrawSetPreviewRot:
Quote:

Sets the rotation and zoom of a 3D model preview player-textdraw.

Which means that you can rotate only model previews (textdraws with font type TEXT_DRAW_FONT_MODEL_PREVIEW)
You are using textures, they can't be rotated in any way


Re: PlayerTextDrawSetPreviewRot don't work - ax1 - 07.08.2015

Quote:
Originally Posted by prineside
Посмотреть сообщение
The description of PlayerTextDrawSetPreviewRot:

Which means that you can rotate only model previews (textdraws with font type TEXT_DRAW_FONT_MODEL_PREVIEW)
You are using textures, they can't be rotated in any way
Thank you.