TextDraw Select problem.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TextDraw Select problem.. (
/showthread.php?tid=525695)
TextDraw Select problem.. -
d3ll - 13.07.2014
Well, I've created this script. It's hard to explain (For me :/)
Basically, when I click on the TD. Nothing happens. but if I hover to the right of the TD it highlights asif I need to click it...
At the right:
Nowhewre near:
pawn Код:
DealershipTD[playerid][13] = TextDrawCreate(473.000000, 419.000000, "~>~"); // Go forward
TextDrawBackgroundColor(DealershipTD[playerid][13], 255);
TextDrawFont(DealershipTD[playerid][13], 1);
TextDrawLetterSize(DealershipTD[playerid][13], 0.400000, 1.399999);
TextDrawColor(DealershipTD[playerid][13], -1);
TextDrawSetOutline(DealershipTD[playerid][13], 0);
TextDrawSetProportional(DealershipTD[playerid][13], 1);
TextDrawSetShadow(DealershipTD[playerid][13], 1);
TextDrawSetSelectable(DealershipTD[playerid][13], true);
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(_:clickedid != INVALID_TEXT_DRAW)
{
if(clickedid == DealershipTD[playerid][13]) // Dealership_Vehicle > forward to last vehicle
{
ForwardShuffleVehs(playerid);
}
}
}
P.s. sorry for the really poorly explained discription.