SA-MP Forums Archive
textdraw wont select - 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 wont select (/showthread.php?tid=639712)



textdraw wont select - LStrike17 - 21.08.2017

hello, I have problem with selectable textdraw. They wont select.

Код:
	TDBanka[playerid][26] = CreatePlayerTextDraw(playerid, 253.680938, 230.583465, ">_Deposit");
	PlayerTextDrawLetterSize(playerid, TDBanka[playerid][26], 0.311918, 1.308333);
	PlayerTextDrawTextSize(playerid, TDBanka[playerid][26], -16.199996, 4.000000);
	PlayerTextDrawAlignment(playerid, TDBanka[playerid][26], 1);
	PlayerTextDrawColor(playerid, TDBanka[playerid][26], -1);
	PlayerTextDrawUseBox(playerid, TDBanka[playerid][26], 1);
	PlayerTextDrawBoxColor(playerid, TDBanka[playerid][26], 0);
	PlayerTextDrawSetShadow(playerid, TDBanka[playerid][26], 1);
	PlayerTextDrawSetOutline(playerid, TDBanka[playerid][26], 0);
	PlayerTextDrawBackgroundColor(playerid, TDBanka[playerid][26], -16776961);
	PlayerTextDrawFont(playerid, TDBanka[playerid][26], 1);
	PlayerTextDrawSetProportional(playerid, TDBanka[playerid][26], 1);
	PlayerTextDrawSetShadow(playerid, TDBanka[playerid][26], 1);
	PlayerTextDrawSetSelectable(playerid, TDBanka[playerid][26], true);

	TDBanka[playerid][27] = CreatePlayerTextDraw(playerid, 253.680938, 253.933700, ">_Withdraw");
	PlayerTextDrawLetterSize(playerid, TDBanka[playerid][27], 0.311918, 1.308333);
	PlayerTextDrawTextSize(playerid, TDBanka[playerid][27], -17.000000, 3.000000);
	PlayerTextDrawAlignment(playerid, TDBanka[playerid][27], 1);
	PlayerTextDrawColor(playerid, TDBanka[playerid][27], -1);
	PlayerTextDrawUseBox(playerid, TDBanka[playerid][27], 1);
	PlayerTextDrawBoxColor(playerid, TDBanka[playerid][27], 0);
	PlayerTextDrawSetShadow(playerid, TDBanka[playerid][27], 1);
	PlayerTextDrawSetOutline(playerid, TDBanka[playerid][27], 0);
	PlayerTextDrawBackgroundColor(playerid, TDBanka[playerid][27], -16776961);
	PlayerTextDrawFont(playerid, TDBanka[playerid][27], 1);
	PlayerTextDrawSetProportional(playerid, TDBanka[playerid][27], 1);
	PlayerTextDrawSetShadow(playerid, TDBanka[playerid][27], 1);
	PlayerTextDrawSetSelectable(playerid, TDBanka[playerid][27], true);

	TDBanka[playerid][28] = CreatePlayerTextDraw(playerid, 337.351928, 230.900451, "Credit_<");
	PlayerTextDrawLetterSize(playerid, TDBanka[playerid][28], 0.311918, 1.308333);
	PlayerTextDrawTextSize(playerid, TDBanka[playerid][28], 63.400024, 2.000000);
	PlayerTextDrawAlignment(playerid, TDBanka[playerid][28], 1);
	PlayerTextDrawColor(playerid, TDBanka[playerid][28], -1);
	PlayerTextDrawUseBox(playerid, TDBanka[playerid][28], 1);
	PlayerTextDrawBoxColor(playerid, TDBanka[playerid][28], 0);
	PlayerTextDrawSetShadow(playerid, TDBanka[playerid][28], 1);
	PlayerTextDrawSetOutline(playerid, TDBanka[playerid][28], 0);
	PlayerTextDrawBackgroundColor(playerid, TDBanka[playerid][28], -16776961);
	PlayerTextDrawFont(playerid, TDBanka[playerid][28], 1);
	PlayerTextDrawSetProportional(playerid, TDBanka[playerid][28], 1);
	PlayerTextDrawSetShadow(playerid, TDBanka[playerid][28], 1);
	PlayerTextDrawSetSelectable(playerid, TDBanka[playerid][28], true);

	TDBanka[playerid][29] = CreatePlayerTextDraw(playerid, 379.024597, 254.550704, "Balance_<");
	PlayerTextDrawLetterSize(playerid, TDBanka[playerid][29], 0.311918, 1.308333);
	PlayerTextDrawTextSize(playerid, TDBanka[playerid][29], 97.100028, 1.000000);
	PlayerTextDrawAlignment(playerid, TDBanka[playerid][29], 3);
	PlayerTextDrawColor(playerid, TDBanka[playerid][29], -1);
	PlayerTextDrawUseBox(playerid, TDBanka[playerid][29], 1);
	PlayerTextDrawBoxColor(playerid, TDBanka[playerid][29], 0);
	PlayerTextDrawSetShadow(playerid, TDBanka[playerid][29], 1);
	PlayerTextDrawSetOutline(playerid, TDBanka[playerid][29], 0);
	PlayerTextDrawBackgroundColor(playerid, TDBanka[playerid][29], -16776961);
	PlayerTextDrawFont(playerid, TDBanka[playerid][29], 1);
	PlayerTextDrawSetProportional(playerid, TDBanka[playerid][29], 1);
	PlayerTextDrawSetShadow(playerid, TDBanka[playerid][29], 1);
	PlayerTextDrawSetSelectable(playerid, TDBanka[playerid][29], true);



Re: textdraw wont select - Man43 - 22.08.2017

Did you add OnPlayerText faction for this?


Re: textdraw wont select - LStrike17 - 22.08.2017

what?


Re: textdraw wont select - aoky - 22.08.2017

Did you put it under OnPlayerClickTextdraw and can you show the full code?

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


Re: textdraw wont select - Vince - 22.08.2017

TextSize must not be zero or negative. A negative bounding box cannot be selected. However I'm still not sure what the best method of defining the clickable area actually is.


Re: textdraw wont select - LStrike17 - 23.08.2017

still doesnt work..