Dialog boxes
#3

As a quick extension for the previous post only, use DaTa[X]'s code under the OnDialogResponse callback, like this:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == xXitsgodzillaXx) // Comparing passed dialogid and variable used, when creating your dialog (storing it's ID)
    {
        if(response)
        {
            // Insert previous box's code here, if you wanna show it, when they selected any items and/or clicked 'Yes'
        }
        else
        {
            // In case, they pressed ESC, or selected cancel
        }
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Dialog boxes - by xXitsgodzillaXx - 15.04.2013, 00:16
Re : Dialog boxes - by DaTa[X] - 15.04.2013, 00:23
Re: Dialog boxes - by T101 - 15.04.2013, 00:50

Forum Jump:


Users browsing this thread: 1 Guest(s)