PlayerTextDraw box not showing - 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: PlayerTextDraw box not showing (
/showthread.php?tid=528639)
PlayerTextDraw box not showing -
Beckett - 29.07.2014
------
Re: PlayerTextDraw box not showing -
Dignity - 29.07.2014
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.
Re: PlayerTextDraw box not showing -
Beckett - 29.07.2014
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);
Re: PlayerTextDraw box not showing -
Battlezone - 29.07.2014
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]);
Re: PlayerTextDraw box not showing -
Beckett - 29.07.2014
------