PDA

View Full Version : PlayerTextDraw not clickable?


Darrenr
24/03/2015, 10:27 PM
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?

AlexBlack
24/03/2015, 11:48 PM
You need to use "PlayerTextDrawSetSelectable" fonction when you create the textdraws, i mean


PlayerTextDrawSetSelectable(playerid, responseOption[playerid], 1);


that need to be in "OnPlayerConnect" Callback

Darrenr
25/03/2015, 08:25 AM
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?

Matess
25/03/2015, 08:47 AM
Change this
PlayerTextDrawTextSize(playerid,responseOption[playerid], 0.000000, 150.000000);

CalvinC
25/03/2015, 08:52 AM
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.