[Help] Dialog doubt
#1

Well i can't get how to make the "Back" button return to:
pawn Код:
ShowPlayerDialog(playerid, HELP, DIALOG_STYLE_LIST, "Help","Account\nCommands\nRules\nCredits", "Select", "Cancel");
My code:
pawn Код:
if(strcmp(cmd, "/help", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            ShowPlayerDialog(playerid, HELP, DIALOG_STYLE_LIST, "Help","Account\nCommands\nRules\nCredits", "Select", "Cancel");
        }
        return 1;
    }

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1338)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, HELP, DIALOG_STYLE_MSGBOX, "Account","Account related stuff here", "Back", "Cancel");
            }
            if(listitem == 1)
            {
                ShowPlayerDialog(playerid, HELP, DIALOG_STYLE_MSGBOX, "Commands","Command shown here", "Back", "Cancel");
            }
            if(listitem == 2)
            {
                ShowPlayerDialog(playerid, HELP, DIALOG_STYLE_MSGBOX, "Rules","Server rules shown here", "Back", "Cancel");
            }
            if(listitem == 3)
            {
                ShowPlayerDialog(playerid, HELP, DIALOG_STYLE_MSGBOX, "Credits","Credits here", "Back", "Cancel");
            }
        }
    }
    return 0;
}
Reply


Messages In This Thread
[Help] Dialog doubt - by Coldthug - 12.05.2010, 19:12
Re: [Help] Dialog doubt - by Zimon95 - 12.05.2010, 19:25
Re: [Help] Dialog doubt - by Coldthug - 12.05.2010, 19:35
Re: [Help] Dialog doubt - by ViruZZzZ_ChiLLL - 13.05.2010, 08:52
Re: [Help] Dialog doubt - by RyDeR` - 13.05.2010, 09:27
Re: [Help] Dialog doubt - by Coldthug - 13.05.2010, 19:52
Re: [Help] Dialog doubt - by ViruZZzZ_ChiLLL - 13.05.2010, 20:00
Re: [Help] Dialog doubt - by Coldthug - 13.05.2010, 21:57

Forum Jump:


Users browsing this thread: 2 Guest(s)