SA-MP Forums Archive
PlayerTextDraw not clickable? - 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: PlayerTextDraw not clickable? (/showthread.php?tid=568763)



PlayerTextDraw not clickable? - Darrenr - 24.03.2015

Hi,

I have created a player textdraw and I am trying to set it as selectable and just have some sort of response from it. But The callback doesn't seem to get called.

This is the code: http://pastebin.com/TnpHyWHw

Just follow it from the top to the bottom (ive put comments but its not got colour, so its hard to see)

Anyone see anything wrong with my code?


Re : PlayerTextDraw not clickable? - AlexBlack - 24.03.2015

You need to use "PlayerTextDrawSetSelectable" fonction when you create the textdraws, i mean

pawn Код:
PlayerTextDrawSetSelectable(playerid, responseOption[playerid], 1);
that need to be in "OnPlayerConnect" Callback


Re: PlayerTextDraw not clickable? - Darrenr - 25.03.2015

I have that on line 27 in the pastebin...

It was originally under OnPlayerConnect but i moved it when i was testing/debugging..

So, it doesnt't seem to be the problem?


Re: PlayerTextDraw not clickable? - Matess - 25.03.2015

Change this
Quote:

PlayerTextDrawTextSize(playerid,responseOption[playerid], 0.000000, 150.000000);




Re: PlayerTextDraw not clickable? - CalvinC - 25.03.2015

I can't find anymore where it says this, but i'm pretty sure you need to change the 0 coordinate to something else, like 1 in PlayerTextDrawTextSize.