Textdrawpreview problem - 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: Textdrawpreview problem (
/showthread.php?tid=508877)
Textdrawpreview problem -
Oskaar1994 - 24.04.2014
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 ?
Re: Textdrawpreview problem -
Conradus - 24.04.2014
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.
AW: Textdrawpreview problem -
Oskaar1994 - 24.04.2014
TEXT_DRAW_FONT_MODEL_PREVIEW is defined as 5. And just for checking I already tested TEXT_DRAW_FONT_MODEL_PREVIEW out.
Re: Textdrawpreview problem -
iFarbod - 24.04.2014
use
mSelection if you have problems.
AW: Textdrawpreview problem -
Oskaar1994 - 24.04.2014
No that wouldn't fit into my design :/
Re: Textdrawpreview problem -
arakuta - 24.04.2014
You can also use some makers like Zamaroht or iPLEOMax