Textdraw Not Selectable?
#1

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!");
		}
Reply
#2

https://sampwiki.blast.hk/wiki/SelectTextdraw
Reply
#3

I think I have done everything on there
Reply
#4

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

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

I have done this. But its not working.
Reply
#7

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

IPLEO
Reply
#9

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..
Reply
#10

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

contact me on skype lennylendog
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)