Mouse clicks not detected, not by OnPlayerClickTextdraw, nor by ITD -
RajatPawar - 08.10.2013
I am trying to do somethings with textdraws, unfortunately, I can't.
I am trying to use iPLEOMAX's awesome textdraw editor but it refuses to acknowledge my mouse's click! I created a huge textdraw, went ingame and clicked on it, but my code under OnPlayerClickTextDraw, which was basically printing "hello" in console, didn't run! That means it didn't get called.
Please NOTE:
I reinstalled GTA - SA.
I reinstalled SA-MP.
I redownloaded the SA-MP server package.
Any help would be greatly appreciated!
Also, I gotta run my SA-MP client using "Run As Administrator" else it doesn't run, just something I'd share if it helps you.
When I use this code
pawn Код:
public OnPlayerClickTextDraw( playerid, Text: clickedid )
{
SendClientMessage( playerid, -1, "CLICKED TEXTDRAW");
return 1;
}
When I use ESC to cancel the cursor (enabled using SelectTextDraw) this message is sent. But not when I am clicking the textdraw!
Re: Mouse clicks not detected, not by OnPlayerClickTextdraw, nor by ITD -
Sublime - 08.10.2013
IS the textdraw clickable? Go with the latest Zamaroht's TD editor (P.S; it's stable n easier)
Re: Mouse clicks not detected, not by OnPlayerClickTextdraw, nor by ITD -
iZN - 08.10.2013
There something might be wrong with the textdraw. Textdraws are working for others?
Re: Mouse clicks not detected, not by OnPlayerClickTextdraw, nor by ITD -
Konstantinos - 08.10.2013
Set
TextDrawSetSelectable to true (it should be set before being shown to players), use
TextDrawShowForPlayer to show the textdraw and last use
SelectTextDraw.
Re: Mouse clicks not detected, not by OnPlayerClickTextdraw, nor by ITD -
Vince - 08.10.2013
What about TextDrawTextSize? If either the X or Y value is zero or negative then the textdraw will not be clickable, no matter what.
Re: Mouse clicks not detected, not by OnPlayerClickTextdraw, nor by ITD -
RajatPawar - 08.10.2013
Text draws are select able already.. but in vain.. and Text size is huge, still nope..