PreviewModel dosen't display!
#1

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


Forum Jump:


Users browsing this thread: 1 Guest(s)