pressing esc while selecting textdraw prob
#1

can someone help me with this i cant determine what is to be done when a player press esc the pointer will not disappear and he will force to choose one of the option

NOTE: CancelSelectTextDraw will automatically call OnPlayerClickTextDraw
pressing ESC will automatically call CancelSelectTextDraw

here is my code
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid != Text:INVALID_TEXT_DRAW)
    {
        if(clickedid == Textdraw9)
        {
            SCM(playerid,-1,"click 1");
            //HideSelectSkill(playerid);
        }
        else if(clickedid == Textdraw10)
        {
            SCM(playerid,-1,"click 2");
            //HideSelectSkill(playerid);
        }
        else if(clickedid == Textdraw11)
        {
            SCM(playerid,-1,"click 3");
            //HideSelectSkill(playerid);
        }
        else if(clickedid == Textdraw12)
        {
            SCM(playerid,-1,"click 4");
            //HideSelectSkill(playerid);
        }
        else if(clickedid == Textdraw13)
        {
            SCM(playerid,-1,"click 5");
            //HideSelectSkill(playerid);
        }
        else if(clickedid == Textdraw14)
        {
            SCM(playerid,-1,"click 6");
            //HideSelectSkill(playerid);
        }
        else if(clickedid == Textdraw15)
        {
            SCM(playerid,-1,"click 7");
            //HideSelectSkill(playerid);
        }
        else if(clickedid == Textdraw16)
        {
            SCM(playerid,-1,"click 8");
            //HideSelectSkill(playerid);
        }
        else if(clickedid == Textdraw17)
        {
            SCM(playerid,-1,"click 9");
            //HideSelectSkill(playerid);
        }
        else if(clickedid == Textdraw18)
        {
            SCM(playerid,-1,"click 10");
            //HideSelectSkill(playerid);
        }
        CancelSelectTextDraw(playerid);
        HideSelectSkill(playerid);
    }
    return 1;
}
Reply
#2

So you want a script that determines when a player presses ESC and that should trigger one of the textdraws in the callback OnPlayerClickTextDraw. Correct?
Reply
#3

this will hide pointer.
pawn Код:
CancelSelectTextDraw(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)