SA-MP Forums Archive
Textdraw Not Selectable? - 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: Textdraw Not Selectable? (/showthread.php?tid=612525)



Textdraw Not Selectable? - JessThompson - 18.07.2016

Creating the textdraw =

Код:
	DealershipCatCon[playerid] = CreatePlayerTextDraw(playerid, 198.333343, 180.444412, "Convertibles");
	PlayerTextDrawLetterSize(playerid, DealershipCatCon[playerid], 0.359665, 1.716148);
	PlayerTextDrawTextSize(playerid, DealershipCatCon[playerid], -7.000000, -130.666687);
	PlayerTextDrawAlignment(playerid, DealershipCatCon[playerid], 2);
	PlayerTextDrawColor(playerid, DealershipCatCon[playerid], -1);
	PlayerTextDrawUseBox(playerid, DealershipCatCon[playerid], true);
	PlayerTextDrawBoxColor(playerid, DealershipCatCon[playerid], 255);
	PlayerTextDrawSetShadow(playerid, DealershipCatCon[playerid], 0);
	PlayerTextDrawSetOutline(playerid, DealershipCatCon[playerid], 0);
	PlayerTextDrawBackgroundColor(playerid, DealershipCatCon[playerid], -2139062017);
	PlayerTextDrawFont(playerid, DealershipCatCon[playerid], 2);
	PlayerTextDrawSetProportional(playerid, DealershipCatCon[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, DealershipCatCon[playerid], true);
stock to show them all
Код:
stock ShowDealershipCats(playerid)
{
...
	PlayerTextDrawShow(playerid, DealershipCatCon[playerid]);
...
	return 1;
}
onplayerclick....

Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
	if(GetIntVar(playerid, "TestVBuy") == 1)
	{
		if(playertextid == DealershipCatClose[playerid])
		{
			SetIntVar(playerid, "TestVBuy", 0);
			HideDealershipCats(playerid);
			SCM(playerid, COLOR_RED, "You closed the menu!");
		}
		if(playertextid == DealershipCatCon[playerid])
		{
			SCM(playerid, COLOR_GREEN, "You clicked Convertibles!");
		}
		if(playertextid == DealershipCatInd[playerid])
		{
			SCM(playerid, COLOR_GREEN, "You clicked Industrial!");
		}



Re: Textdraw Not Selectable? - Gammix - 18.07.2016

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


Re: Textdraw Not Selectable? - JessThompson - 18.07.2016

I think I have done everything on there


Re: Textdraw Not Selectable? - JessThompson - 18.07.2016

I can't seem to figure out why it is not working


Re: Textdraw Not Selectable? - WhiteGhost - 18.07.2016

I believe its because the textsize isnt right.. what textdraw editor do u use?


Re: Textdraw Not Selectable? - JessThompson - 18.07.2016

I have done this. But its not working.


Re: Textdraw Not Selectable? - WhiteGhost - 18.07.2016

Quote:
Originally Posted by JessThompson
Посмотреть сообщение
I have done this. But its not working.
Edit: ^


Re: Textdraw Not Selectable? - JessThompson - 18.07.2016

IPLEO


Re: Textdraw Not Selectable? - WhiteGhost - 18.07.2016

Quote:
Originally Posted by JessThompson
Посмотреть сообщение
IPLEO
Exactly.. it doesnt give the right textdrawtextsize if u dont get the problem solve soon ill do a quick tutorial on it..


Re: Textdraw Not Selectable? - JessThompson - 18.07.2016

Could you explain to me how to get textdraw size correct.

contact me on skype lennylendog