PlayerTextDraw not clickable?
#1

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

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
Reply
#3

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?
Reply
#4

Change this
Quote:

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

Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)