PlayerTextDrawSetPreviewRot don't work
#1

Код:
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.
Reply
#2

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
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)