Player Dialog How to change function of second button?
#5

Example:
OnPlayerConnect:
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Title", "Information", "Button 1", "Button 2");
OnDialogResponse:
pawn Код:
if(dialogid == 1)
    {
        if(response == 0)
        {
            SendClientMessage(playerid, -1, "You clicked on Button 2");
            //bla bla bla
        }

        if(response)
        {
            if(listitem == 0)
            {
                //bla bla bla
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Player Dialog How to change function of second button? - by Legit_V20 - 21.01.2011, 10:57
Re: Player Dialog How to change function of second button? - by ExeC - 21.01.2011, 11:01
Re: Player Dialog How to change function of second button? - by Legit_V20 - 21.01.2011, 11:07
Re: Player Dialog How to change function of second button? - by ExeC - 21.01.2011, 11:12
Re: Player Dialog How to change function of second button? - by HyperZ - 21.01.2011, 11:14
Re: Player Dialog How to change function of second button? - by Legit_V20 - 21.01.2011, 11:22

Forum Jump:


Users browsing this thread: 1 Guest(s)