19.02.2018, 21:22
Here's the Issue:
I have an Array and the Textdraw Variables are saved in it.
Now when I get a player to click on the Textdraw and go to OnPlayerClickTextdraw
it doesn't do anything at all.
And on that note, after doing hours of searching, No for the love of god, I didn't leave out TextDrawTextSize
and Yes, SelectTextDraw is in there.
Normally I wouldn't post on here because I like to troubleshoot my own errors and don't like to waste people's time with simple things that include leaving out one single ';', But, I'm desperate.
I have an Array and the Textdraw Variables are saved in it.
pawn Код:
new Text:VariableHere[14];
it doesn't do anything at all.
And on that note, after doing hours of searching, No for the love of god, I didn't leave out TextDrawTextSize
and Yes, SelectTextDraw is in there.
pawn Код:
HUDSideBar[9] = TextDrawCreate(624.799987, 252.373291, "hud:radar_tshirt");
TextDrawLetterSize(HUDSideBar[9], 0.000000, 0.000000);
TextDrawTextSize(HUDSideBar[9], 12.400017, 12.444452);
TextDrawAlignment(HUDSideBar[9], 1);
TextDrawColor(HUDSideBar[9], -1);
TextDrawSetShadow(HUDSideBar[9], 0);
TextDrawSetOutline(HUDSideBar[9], 0);
TextDrawFont(HUDSideBar[9], 4);
TextDrawSetSelectable(HUDSideBar[9], true);
pawn Код:
hook OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == MMORPGHUDSideBar[9])
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on the T-Shirt Textdraw.");
return 1;
//CancelSelectTextDraw(playerid);
}
}