Clickable textdraws
#2

Looks like you've set the selection before showing up the textdraws. I'm not very sure, but give a try to this :
pawn Код:
CMD:menu(playerid, params[])
{
    if(one[playerid] == 0)
    {
        TextDrawShowForPlayer(playerid,MainBox);
        TextDrawShowForPlayer(playerid,title);
        TextDrawShowForPlayer(playerid,Info);
        TextDrawShowForPlayer(playerid,Divider);
        TextDrawShowForPlayer(playerid,Close);
        for(new i; i < 10; i++)
        {
            TextDrawShowForPlayer(playerid, Item[i]);
        }
        one[playerid] = 1;
                SelectTextDraw(playerid,0x33CCFFAA);
    }
    else
    {
        TextDrawHideForPlayer(playerid,MainBox);
        TextDrawHideForPlayer(playerid,title);
        TextDrawHideForPlayer(playerid,Info);
        TextDrawHideForPlayer(playerid,Divider);
        TextDrawHideForPlayer(playerid,Close);
        for(new i; i < 10; i++)
        {
            TextDrawHideForPlayer(playerid, Item[i]);
        }
        one[playerid] = 0;
        CancelSelectTextDraw(playerid);
    }
    return 1;
}
Reply


Messages In This Thread
Clickable textdraws - by willsuckformoney - 25.12.2013, 00:54
Re: Clickable textdraws - by Lordzy - 25.12.2013, 01:08
Re: Clickable textdraws - by ikey07 - 25.12.2013, 01:26
Re: Clickable textdraws - by willsuckformoney - 25.12.2013, 01:39
AW: Clickable textdraws - by Nero_3D - 25.12.2013, 01:55

Forum Jump:


Users browsing this thread: 2 Guest(s)