Textdrawpreview problem
#1

Hey,
I've got a problem. Every time when I create a textdraw with a model preview, it closes instantly after I use PlayerTextDrawShow. This happens to all textdraws with a preview model on it. What wrong with my code ?
Код:
SelectPilot[playerid] = CreatePlayerTextDraw(playerid, 124.285720, 173.446670, "usebox");
PlayerTextDrawLetterSize(playerid, SelectPilot[playerid], 0.000000, 15.375185);
PlayerTextDrawTextSize(playerid, SelectPilot[playerid], 38.000000, 0.000000);
PlayerTextDrawAlignment(playerid, SelectPilot[playerid], 1);
PlayerTextDrawColor(playerid, SelectPilot[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, SelectPilot[playerid], 102);
PlayerTextDrawFont(playerid, SelectPilot[playerid], 5);
PlayerTextDrawUseBox(playerid, SelectPilot[playerid], true);
PlayerTextDrawBoxColor(playerid, SelectPilot[playerid], 102);
PlayerTextDrawSetShadow(playerid, SelectPilot[playerid], 0);
PlayerTextDrawSetOutline(playerid, SelectPilot[playerid], 0);
PlayerTextDrawSetPreviewModel(playerid,SelectPilot[playerid], 71);
What am I doing wrong ?
Reply
#2

From the wiki:
Important Note:The textdraw MUST use the font type TEXT_DRAW_FONT_MODEL_PREVIEW in order for this function to have effect.
Reply
#3

TEXT_DRAW_FONT_MODEL_PREVIEW is defined as 5. And just for checking I already tested TEXT_DRAW_FONT_MODEL_PREVIEW out.
Reply
#4

use mSelection if you have problems.
Reply
#5

No that wouldn't fit into my design :/
Reply
#6

You can also use some makers like Zamaroht or iPLEOMax
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)