PlayerTextDraw box not showing
#1

------
Reply
#2

Did you show the textdraw at all? You have to manually show them under a callback that has the "playerid" param.

https://sampwiki.blast.hk/wiki/PlayerTextDrawShow

pawn Код:
PlayerTextDrawShow(playerid, gMyTextdraw[playerid]);
EDIT: I didn't see the code tags properly, sorry.


Make sure the textdraw is shown AFTER it was created.
Reply
#3

Yes it's showing after it has been created.


pawn Код:
hptxt[playerid] = CreatePlayerTextDraw(playerid,497.5,96, "_");

    PlayerTextDrawShow(playerid, hptxt[playerid]);
    PlayerTextDrawColor(playerid, hptxt[playerid], 0xFF0000FF); // Red text
    PlayerTextDrawUseBox(playerid,hptxt[playerid],1);
    PlayerTextDrawBoxColor(playerid,hptxt[playerid], 0x00000066);
Reply
#4

pawn Код:
hptxt[playerid] = CreatePlayerTextDraw(playerid,497.5,96, "_");
    PlayerTextDrawColor(playerid, hptxt[playerid], 0xFF0000FF); // Red text
    PlayerTextDrawUseBox(playerid,hptxt[playerid],1);
    PlayerTextDrawBoxColor(playerid,hptxt[playerid], 0x00000066);
    PlayerTextDrawShow(playerid, hptxt[playerid]);
Reply
#5

------
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)