Next line problem
#1

Problem is that in Account Commands after I click Back its closes and nothing happen, It must go back to Player Commands dialog right?? As you can see //Next Button //Back Button the word else..

The only working is when I do /cd - it shows Basic Commands and that is right, If I click >> Then Player Commands will show and that's correct too, and last If I click next the Account Commands will show and that's correct. The only problem is the Back under Account Commands.

pawn Код:
CMD:cd(playerid, params[])
{
    new str[512];
    strcat(str, "Basic Commands:\n\n");
    strcat(str, "/id -- Search player ID using Player part name\n");
    strcat(str, "/pm -- Send private message to a player\n");
    ShowPlayerDialog(playerid, DIALOG_COMMANDS, DIALOG_STYLE_MSGBOX, "Commands", str, ">>", "Close");
    return 1;
}
pawn Код:
Under OnDialogResponse
if(dialogid == DIALOG_COMMANDS && response)
    {
        new str[512];
        strcat(str, "Player Commands:\n\n");
        strcat(str, "/stats -- Show specified player statistics\n");
        strcat(str, "/kill -- Suicide\n");
        ShowPlayerDialog(playerid, DIALOG_COMMANDS + 1, DIALOG_STYLE_MSGBOX, "Commands", str, ">>", "Back");
        return 1;
    }
    if(dialogid == DIALOG_COMMANDS + 1)
    {
        if(response) //Next Button
        {
            new str[256];
            strcat(str, "Account Commands:\n\n");
            strcat(str, "/register -- register for a new account\n");
            strcat(str, "/login -- login your registered account\n");
            ShowPlayerDialog(playerid, DIALOG_COMMANDS + 2, DIALOG_STYLE_MSGBOX, "Commands", str, ">>", "Back");
        }
        else //Back Button
        {
            new str[512];
            strcat(str, "Player Commands:\n\n");
            strcat(str, "/stats -- Show specified player statistics\n");
            ShowPlayerDialog(playerid, DIALOG_COMMANDS, DIALOG_STYLE_MSGBOX, "Commands", str, ">>", "Close");
        }
    }
    return 1;
}
Reply


Messages In This Thread
Next line problem - by kbalor - 21.08.2012, 19:49
Re: Next line problem - by Shetch - 21.08.2012, 21:09
Re: Next line problem - by kbalor - 22.08.2012, 12:17
Re: Next line problem - by kbalor - 22.08.2012, 12:54
Re: Next line problem - by Shetch - 22.08.2012, 13:02
Re: Next line problem - by Shetch - 22.08.2012, 13:05
Re: Next line problem - by clarencecuzz - 22.08.2012, 13:13
Re: Next line problem - by kbalor - 22.08.2012, 14:03
Re: Next line problem - by kbalor - 22.08.2012, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)