dialog questions
#3

pawn Код:
#define GUIDES 5006
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
CMD:guides(playerid, params[])
{
    ShowPlayerDialog(playerid, GUIDES, DIALOG_STYLE_LIST, "Server Guides", "Guides1 \nGuides2\nGuides3", "Select", "Cancel");
    return 1;
}
and
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
 if(dialogid == GUIDES)// /changes
{
    if(response)
    {
        if(listitem == 0)
        {
            ShowPlayerDialog(playerid, GUIDES, DIALOG_STYLE_MSGBOX/List, "Title","Text", "Ok", "Cancel");//Change the "Title" and "Text" if you want
        }
        if(listitem == 1)
        {
            ShowPlayerDialog(playerid, GUIDES, DIALOG_STYLE_MSGBOX/List, "title","Text", "Ok", "Cancel");
        }
        if(listitem == 2)
        {
            ShowPlayerDialog(playerid, GUIDES, DIALOG_STYLE_MSGBOX/List, "title","Text", "Ok", "Cancel");
        }
    }
    return 1;
}
Here you go
Reply


Messages In This Thread
dialog questions - by AMEENAMEEN - 05.05.2012, 16:02
Re: dialog questions - by Ballu Miaa - 05.05.2012, 16:11
Re: dialog questions - by ToiletDuck - 05.05.2012, 16:21
Re: dialog questions - by AMEENAMEEN - 10.05.2012, 14:39
Re: dialog questions - by Ballu Miaa - 23.06.2012, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)