i need help with...
#2

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response == 1) //clicked first button
    {
        switch(dialogid)
        {
            case 1: //Your dialog - (case YourDialogID:)
            {
                switch(listitem)
                {
                    case 0: //the first listitem
                    {
                        ShowPlayerDialog(playerid,YOURDIALOG,DIALOG_STYLE_MSGBOX,"Header","Message","Button1","Button2");
                    }
                }
            }
        }
    }
if(response == 0) //clicked second button
    {
        switch(dialogid)
        {
            case 1: //your msgbox dialog
            {
                //DoWhateverYouWantHere
            }
        }
    }
    return 0;
}
Reply


Messages In This Thread
i need help with... - by jot16 - 08.08.2011, 00:00
AW: i need help with... - by Drebin - 08.08.2011, 00:18
Re: i need help with... - by jot16 - 08.08.2011, 01:56
Re: i need help with... - by grand.Theft.Otto - 08.08.2011, 03:08
Re: i need help with... - by jot16 - 08.08.2011, 03:16
Re: i need help with... - by Kush - 08.08.2011, 03:25
Re: i need help with... - by jot16 - 08.08.2011, 03:50
Re: i need help with... - by Sil3nc3 - 08.08.2011, 03:58
Re: i need help with... - by jot16 - 08.08.2011, 04:43
Re: i need help with... - by Kush - 08.08.2011, 05:01

Forum Jump:


Users browsing this thread: 1 Guest(s)