pawn Код:
if(dialogid == DIALOG_COMMANDS_1)
{
if(response) return ShowPlayerDialog(playerid ,DIALOG_COMMANDS_2 ,DIALOG_STYLE_MSGBOX, "Account Commands", str2, ">>", "<<");
else return 1;
}
if(dialogid == DIALOG_COMMANDS_2)
{
if(response) return ShowPlayerDialog(playerid ,DIALOG_COMMANDS_3 ,DIALOG_STYLE_MSGBOX, "Player Commands", str3, ">>", "<<");
else return ShowPlayerDialog(playerid, DIALOG_COMMANDS_1, DIALOG_STYLE_MSGBOX, "Base Commands", str1, ">>", "Close");
}
if(dialogid == DIALOG_COMMANDS_3)
{
if(response) return ShowPlayerDialog(playerid ,DIALOG_COMMANDS_4 ,DIALOG_STYLE_MSGBOX, "Vehicle Commands", str4, "<<", "Close");
else return ShowPlayerDialog(playerid ,DIALOG_COMMANDS_2 ,DIALOG_STYLE_MSGBOX, "Account Commands", str2, ">>", "<<");
}
if ( dialogid == DIALOG_COMMANDS_4)
{
if(response) return ShowPlayerDialog(playerid ,DIALOG_COMMANDS_3 ,DIALOG_STYLE_MSGBOX, "Player Commands", str3, ">>", "<<");
else return 1;
}