Dialog Show up
#1

fixed
Reply
#2

i dont think the DIALOG_STYLE_MSGBOX type will call OnDialogResponse.

I had the same problem when trying something like this.
Reply
#3

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
i dont think the DIALOG_STYLE_MSGBOX type will call OnDialogResponse.

I had the same problem when trying something like this.
It will call OnDialogResponse

pawn Код:
if(dialogid == MSG_BOX_STYLE_ID) // dialog ID of the dialog which uses MSG box style
{
    if(response) //BUTTON 1
    {
        //your code
    }
    else // BUTTON 2
    {
        //your code
    }
}
Try that way and it will surely work and the "if(strlen(inputtext))" will only work with the following type of dialogs:-
  • DIALOG_STYLE_INPUT
  • DIALOG_STYLE_PASSWORD
Regards FalcoNX
Reply
#4

ShowPlayerDialog(playerid,1111, DIALOG_STYLE_MSGBOX,"Terms and Roles.", DialogString,"Join","Exit");

if(dialogid == 1234)

You're not using the same ID.
Reply
#5

You should use defines for dialog IDs, so you know what is what.

#define DIALOG_LOGIN 1
Reply
#6

Thanks, appreciated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)