15.04.2013, 00:50
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;
}