PlayerTextDraw - Selectable?
#1

Hey.
I'm searching for a little tutorial, to make textdraw which i can select with my mouse.
currently i've script it like this:
pawn Code:
pTutorialDrawSkin[10][playerid] = CreatePlayerTextDraw(playerid, 370.000, 251.377, "<");
                    PlayerTextDrawLetterSize(playerid, pTutorialDrawSkin[10][playerid], 0.685, 2.375);
                    PlayerTextDrawAlignment(playerid, pTutorialDrawSkin[10][playerid], 1);
                    PlayerTextDrawColor(playerid, pTutorialDrawSkin[10][playerid], -1);
                    PlayerTextDrawSetOutline(playerid, pTutorialDrawSkin[10][playerid], 1);
                    PlayerTextDrawBackgroundColor(playerid, pTutorialDrawSkin[10][playerid], 51);
                    PlayerTextDrawFont(playerid, pTutorialDrawSkin[10][playerid], 1);
                    PlayerTextDrawSetProportional(playerid, pTutorialDrawSkin[10][playerid], 1);
                    PlayerTextDrawTextSize(playerid, pTutorialDrawSkin[10][playerid], 1337.000, 1337.000);

                    pTutorialDrawSkin[12][playerid] = CreatePlayerTextDraw(playerid, 532.833, 251.048, ">");
                    PlayerTextDrawLetterSize(playerid, pTutorialDrawSkin[12][playerid], 0.685, 2.375);
                    PlayerTextDrawAlignment(playerid, pTutorialDrawSkin[12][playerid], 1);
                    PlayerTextDrawColor(playerid, pTutorialDrawSkin[12][playerid], -1);
                    PlayerTextDrawSetOutline(playerid, pTutorialDrawSkin[12][playerid], 1);
                    PlayerTextDrawBackgroundColor(playerid, pTutorialDrawSkin[12][playerid], 51);
                    PlayerTextDrawFont(playerid, pTutorialDrawSkin[12][playerid], 1);
                    PlayerTextDrawSetProportional(playerid, pTutorialDrawSkin[12][playerid], 1);
                    PlayerTextDrawTextSize(playerid, pTutorialDrawSkin[12][playerid], 1337.000, 1337.000);

                    PlayerTextDrawSetSelectable(playerid, pTutorialDrawSkin[playerid][10], true);
                    PlayerTextDrawSetSelectable(playerid, pTutorialDrawSkin[playerid][12], true);
                   
                    SelectTextDraw(playerid, 0xFFCC00FF);
But if i try to move over the textdraws with my mouse, the color doesnt change, and if i click on it, nothing happens, but i have used OnPlayerClickPlayerTextDraw() :/

Can anyone help me?
Reply


Messages In This Thread
PlayerTextDraw - Selectable? - by 'Pawno. - 13.09.2012, 17:56
Re: PlayerTextDraw - Selectable? - by Glint - 13.09.2012, 18:12
AW: PlayerTextDraw - Selectable? - by 'Pawno. - 13.09.2012, 18:32
AW: PlayerTextDraw - Selectable? - by 'Pawno. - 14.09.2012, 09:24
Re: PlayerTextDraw - Selectable? - by Glint - 14.09.2012, 09:30
Re: PlayerTextDraw - Selectable? - by Amit_B - 14.09.2012, 11:02
AW: PlayerTextDraw - Selectable? - by 'Pawno. - 14.09.2012, 17:12
Re: PlayerTextDraw - Selectable? - by Amit_B - 14.09.2012, 18:21
AW: PlayerTextDraw - Selectable? - by 'Pawno. - 15.09.2012, 12:59

Forum Jump:


Users browsing this thread: 4 Guest(s)