SA-MP Forums Archive
PreviewModel dosen't display! - 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: PreviewModel dosen't display! (/showthread.php?tid=406065)



PreviewModel dosen't display! - DarkPower - 08.01.2013

pawn Код:
new
   PlayerText: con;
public OnPlayerConnect(playerid)
{
    con = CreatePlayerTextDraw(playerid, 21.000000, 159.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, con, 255);
    PlayerTextDrawFont(playerid, con, TEXT_DRAW_FONT_MODEL_PREVIEW);
    PlayerTextDrawSetPreviewModel(playerid, con, 520);
    PlayerTextDrawSetPreviewRot(playerid, con, -10.0, 0.0, -20.0, 1.0);
    PlayerTextDrawLetterSize(playerid, con, 0.500000, 14.000000);
    PlayerTextDrawColor(playerid, con, -1);
    PlayerTextDrawSetOutline(playerid, con, 0);
    PlayerTextDrawSetProportional(playerid, con, 1);
    PlayerTextDrawSetShadow(playerid, con, 1);
    PlayerTextDrawUseBox(playerid, con, 1);
    PlayerTextDrawBoxColor(playerid, con, 80);
    PlayerTextDrawTextSize(playerid, con, 210.000000, 0.000000);
    PlayerTextDrawShow(playerid, con);
    return (true);
}
When i connect on server i don't see anything!

BUT! When i comment preview model functions i see this...

/imageshack/img59/525...540b90aac5.png

This is code when i comment new functions

pawn Код:
con = CreatePlayerTextDraw(playerid, 21.000000, 159.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, con, 255);
    PlayerTextDrawFont(playerid, con, 1);
    /*PlayerTextDrawSetPreviewModel(playerid, con, 520);
    PlayerTextDrawSetPreviewRot(playerid, con, -10.0, 0.0, -20.0, 1.0);*/

    PlayerTextDrawLetterSize(playerid, con, 0.500000, 14.000000);
    PlayerTextDrawColor(playerid, con, -1);
    PlayerTextDrawSetOutline(playerid, con, 0);
    PlayerTextDrawSetProportional(playerid, con, 1);
    PlayerTextDrawSetShadow(playerid, con, 1);
    PlayerTextDrawUseBox(playerid, con, 1);
    PlayerTextDrawBoxColor(playerid, con, 80);
    PlayerTextDrawTextSize(playerid, con, 210.000000, 0.000000);
    PlayerTextDrawShow(playerid, con);
EDIT: I found the problem:

pawn Код:
PlayerTextDrawTextSize(playerid, con, 210.000000, 0.000000);
Float: Y can't be 0.0000

Lock please, and srry...