SF->getSAMP()->getDialog()->ShowDialog(101, 2, "Название", "1\n2\n3", "Выбрать", "Закрыть");
switch (dialogId) { case 101: { if (buttonId == 1) { if (listItem == 0) SF->getSAMP()->getChat()->AddChatMessage(-1, "1-1."); if (listItem == 1) SF->getSAMP()->getChat()->AddChatMessage(-1, "1-2."); if (listItem == 2) SF->getSAMP()->getDialog()->ShowDialog(102, 2, "Пункт 3", "1\n2", "Выбрать", "Закрыть"); } else { SF->getSAMP()->getChat()->AddChatMessage(-1, "101 закрыт."); } } case 102: { if (buttonId == 1) { if (listItem == 0) SF->getSAMP()->getChat()->AddChatMessage(-1, "2-1."); if (listItem == 1) SF->getSAMP()->getChat()->AddChatMessage(-1, "2-2."); } else { SF->getSAMP()->getChat()->AddChatMessage(-1, "102 закрыт."); } } }