TextDraw Select problem..
#1

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)