Textdraw Hiding themselves. (PlayerText)
#1

I ran into this issue before and nobody seemed to know what was wrong, I've recently re-done the Textdraws and made them Playertext, but I'm still running into the issue.

pawn Код:
CharacterInventory_Slots[playerid][2] = CreatePlayerTextDraw(playerid, 268.666503, 127.762977, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][2], 0.000000, 4.224484);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][2], 230.666854, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][2], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][2], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][2], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][2], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][2], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][2], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][2], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][2], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][2], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][3] = CreatePlayerTextDraw(playerid, 305.666839, 127.603645, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][3], 0.000000, 4.236420);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][3], 267.333526, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][3], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][3], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][3], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][3], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][3], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][3], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][3], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][3], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][3], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][4] = CreatePlayerTextDraw(playerid, 342.333435, 127.762962, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][4], 0.000000, 4.196914);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][4], 304.136505, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][4], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][4], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][4], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][4], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][4], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][4], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][4], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][4], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][4], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][5] = CreatePlayerTextDraw(playerid, 378.666534, 127.603614, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][5], 0.000000, 4.242177);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][5], 340.999908, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][5], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][5], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][5], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][5], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][5], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][5], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][5], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][5], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][5], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][6] = CreatePlayerTextDraw(playerid, 195.666732, 170.329635, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][6], 0.000000, 4.325304);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][6], 157.666717, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][6], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][6], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][6], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][6], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][6], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][6], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][6], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][6], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][6], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][7] = CreatePlayerTextDraw(playerid, 232.333465, 170.488815, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][7], 0.000000, 4.329836);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][7], 194.333328, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][7], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][7], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][7], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][7], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][7], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][7], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][7], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][7], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][7], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][8] = CreatePlayerTextDraw(playerid, 268.666778, 170.329650, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][8], 0.000000, 4.320777);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][8], 230.666656, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][8], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][8], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][8], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][8], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][8], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][8], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][8], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][8], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][8], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][9] = CreatePlayerTextDraw(playerid, 305.333557, 170.329666, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][9], 0.000000, 4.327364);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][9], 267.333404, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][9], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][9], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][9], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][9], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][9], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][9], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][9], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][9], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][9], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][10] = CreatePlayerTextDraw(playerid, 342.333221, 170.488845, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][10], 0.000000, 4.308434);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][10], 304.333221, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][10], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][10], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][10], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][10], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][10], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][10], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][10], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][10], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][10], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][11] = CreatePlayerTextDraw(playerid, 379.000122, 170.329528, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][11], 0.000000, 4.321605);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][11], 341.000030, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][11], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][11], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][11], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][11], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][11], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][11], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][11], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][11], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][11], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][12] = CreatePlayerTextDraw(playerid, 195.666687, 214.044403, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][12], 0.000000, 4.212963);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][12], 157.666488, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][12], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][12], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][12], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][12], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][12], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][12], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][12], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][12], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][12], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][13] = CreatePlayerTextDraw(playerid, 232.333297, 213.885192, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][13], 0.000000, 4.239296);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][13], 194.333251, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][13], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][13], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][13], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][13], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][13], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][13], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][13], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][13], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][13], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][14] = CreatePlayerTextDraw(playerid, 268.666687, 213.885192, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][14], 0.000000, 4.225718);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][14], 230.666717, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][14], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][14], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][14], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][14], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][14], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][14], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][14], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][14], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][14], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][15] = CreatePlayerTextDraw(playerid, 305.333312, 213.885147, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][15], 0.000000, 4.214200);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][15], 267.333312, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][15], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][15], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][15], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][15], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][15], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][15], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][15], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][15], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][15], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][16] = CreatePlayerTextDraw(playerid, 342.333557, 213.885223, "_");
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][16], 0.000000, 4.178803);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][16], 304.333374, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][16], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][16], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][16], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][16], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][16], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][16], 0);
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][16], 5);
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][16], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][16], -16.0, 0.0, -55.0);

    CharacterInventory_Slots[playerid][17] = CreatePlayerTextDraw(playerid, 378.999969, 213.885101, "_");
    PlayerTextDrawFont(playerid, CharacterInventory_Slots[playerid][17], 5);
    PlayerTextDrawLetterSize(playerid, CharacterInventory_Slots[playerid][17], 0.000000, 4.219955);
    PlayerTextDrawTextSize(playerid, CharacterInventory_Slots[playerid][17], 341.000000, 0.000000);
    PlayerTextDrawAlignment(playerid, CharacterInventory_Slots[playerid][17], 1);
    PlayerTextDrawColor(playerid, CharacterInventory_Slots[playerid][17], 0);
    PlayerTextDrawUseBox(playerid, CharacterInventory_Slots[playerid][17], true);
    PlayerTextDrawBoxColor(playerid, CharacterInventory_Slots[playerid][17], 102);
    PlayerTextDrawSetShadow(playerid, CharacterInventory_Slots[playerid][17], 0);
    PlayerTextDrawSetOutline(playerid, CharacterInventory_Slots[playerid][17], 0)
    PlayerTextDrawSetPreviewModel(playerid, CharacterInventory_Slots[playerid][17], 411);
    PlayerTextDrawSetPreviewRot(playerid, CharacterInventory_Slots[playerid][17], -16.0, 0.0, -55.0);
Showing (This will change to something more effective later)
pawn Код:
COMMAND:inv(playerid)
{
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][0]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][1]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][2]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][3]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][4]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][5]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][6]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][7]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][8]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][9]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][10]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][11]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][12]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][13]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][14]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][15]);
    PlayerTextDrawShow(playerid, CharacterInventory_Slots[playerid][16]);
    return true;
}
Reply
#2

whats the real problem? textdraws hides when? any more details?
Reply
#3

The textdraws just hide by themselves, no idea the reason why.
Reply
#4

Found the issue.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)