Quick Assistance regarding player textdraws selecting - 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: Quick Assistance regarding player textdraws selecting (
/showthread.php?tid=573430)
Quick Assistance regarding player textdraws selecting -
Beckett - 07.05.2015
pawn Код:
InventoryHeader[playerid] = CreatePlayerTextDraw(playerid,x,y,string);
PlayerTextDrawBackgroundColor(playerid,InventoryHeader[playerid], 255);
PlayerTextDrawFont(playerid,InventoryHeader[playerid], 3);
PlayerTextDrawLetterSize(playerid,InventoryHeader[playerid], 0.319999, 1.000000);
PlayerTextDrawColor(playerid,InventoryHeader[playerid], 33023);
PlayerTextDrawSetOutline(playerid,InventoryHeader[playerid], 1);
PlayerTextDrawSetProportional(playerid,InventoryHeader[playerid], 1);
PlayerTextDrawShow(playerid,InventoryHeader[playerid]);
What's wrong with this? I am unable to select it.
- I am using OnPlayerClickPlayerTextDraw
- I am using PlayerTextDrawSetSelectable
- I am using SelectTextDraw (Assuming both global and per-player works on the same function.)
Re: Quick Assistance regarding player textdraws selecting -
Beckett - 07.05.2015
Nevermind, managed to fix it after placing the PlayerTextDrawSetSelectable below the creation.