05.05.2013, 01:09
I have created a textdraw which is supposed to be selected and turn "green" when highlighted. When I click on it, it should send me a message that says I clicked it.
The issue: when I hover over it, nothing happens. When I click on it, nothing happens. I can see the textdraws, but nothing happens upon hovering/clicking them.
Of course these are actually under the correct callbacks. I just didn't feel like pasting them in too.
The issue: when I hover over it, nothing happens. When I click on it, nothing happens. I can see the textdraws, but nothing happens upon hovering/clicking them.
pawn Код:
new Text:Textdraw10;
//OnGameModeInit
Textdraw10 = TextDrawCreate(280.000000, 166.340713, "Test");
TextDrawLetterSize(Textdraw10, 0.341333, 1.765926);
TextDrawTextSize(Textdraw10, 81.000007, 33.599998);
TextDrawAlignment(Textdraw10, 1);
TextDrawColor(Textdraw10, -1);
TextDrawSetShadow(Textdraw10, 0);
TextDrawSetOutline(Textdraw10, 1);
TextDrawBackgroundColor(Textdraw10, 51);
TextDrawFont(Textdraw10, 2);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetSelectable(Textdraw10, true);
// On player connect
TextDrawShowForPlayer(playerid, Text:Textdraw10);
SelectTextDraw(playerid, 0x00FF00FF);
//OnPlayerClickTextdraw
if(clickedid == Text:Textdraw10)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked Test.");
}