Mouse clicks not detected, not by OnPlayerClickTextdraw, nor by ITD
#1

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!
Reply
#2

IS the textdraw clickable? Go with the latest Zamaroht's TD editor (P.S; it's stable n easier)
Reply
#3

There something might be wrong with the textdraw. Textdraws are working for others?
Reply
#4

Set TextDrawSetSelectable to true (it should be set before being shown to players), use TextDrawShowForPlayer to show the textdraw and last use SelectTextDraw.
Reply
#5

What about TextDrawTextSize? If either the X or Y value is zero or negative then the textdraw will not be clickable, no matter what.
Reply
#6

Text draws are select able already.. but in vain.. and Text size is huge, still nope..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)