
06.06.2020, 11:12
|
|
Новичок
Регистрация: 06.06.2020
Сообщений: 1
С нами:
3125242
Репутация:
1
|
|
Yo guys. I'm having a problem trying to create a second dialog (after the first one closes). The first dialog appears normally, and when a response it, the second dialog never appears. What should i do ? I had already searched a lot and no answers
Код:
Код:
void click()
{
SF->getSAMP()->getDialog()->ShowDialog(DIALOG_CRIARCONFIG, DIALOG_STYLE_INPUT, "Criar", "Nome da nova configuração:", "Criar", "Cancelar");//Working
}
void CALLBACK OnDialogResponse(int dialogId, int buttonId, int listItem, const char* input)
{
switch (dialogId)
{
case DIALOG_CRIARCONFIG:
{
if (buttonId == 1)
{
SF->getSAMP()->getDialog()->ShowDialog(DIALOG_AVISO, DIALOG_STYLE_MSGBOX, "Criado", "O Arquivo foi criado!", "Ok", "");//Not Working
SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0xAA, 0), "O Arquivo foi criado!");
}
}
}
}
The first one closes after i response it, and the second never shows. I had already tried Close(0);
|
|
|