TextDrawSetSelectable doesn't work... ?
#1

Hi, I'm using 0.3e RC4, and I wanted to test out TextDrawSetSelectable.
In OnGameModeInit, after creating the two textdraws I wanted to make selectable, I did this:
pawn Код:
TextDrawSetSelectable(txd_plr_DSM_003, 1);
TextDrawSetSelectable(txd_plr_DSM_002, 1);
I made it so that the textdraws are shown when I use /mycommand (random command name, really. I was just testing!)
There, I also do this:
pawn Код:
SelectTextDraw(playerid, 0x66FF6633);
Both textdraws are BOXES. Unfortunately, I cannot select them with the mouse cursor.
When I click them, nothing happens.
And in OnPlayerClickTextDraw, I have it like so:
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid) {
    if(clickedid == txd_plr_DSM_002 || clickedid == txd_plr_DSM_003) {
        HidePlayerDialogTextdraws(playerid); // this stock contains custom code which hides all the dialog textdraws. I'm sure you don't need it to help me.
        CancelSelectTextDraw(playerid);
    }
    printf("Clicked TXD");
}
Yes, I have also tried this with text textdraws and tried the set box, do this, hide box, do that method and it doesn't work, either.
There must be something I'm missing! Can anyone help me?

...
if it helps you with anything, here you go: (click to enlarge the image)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)