Dialog Show up
#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


Messages In This Thread
Dialog Show up - by iFederal - 29.05.2012, 23:22
Re: Dialog Show up - by Jonny5 - 29.05.2012, 23:39
Re: Dialog Show up - by FalconX - 29.05.2012, 23:44
Re: Dialog Show up - by mati233 - 29.05.2012, 23:49
Re: Dialog Show up - by MP2 - 29.05.2012, 23:53
Re: Dialog Show up - by iFederal - 29.05.2012, 23:54

Forum Jump:


Users browsing this thread: 1 Guest(s)