15.04.2013, 00:16
How would I make a Dialog box go back to the previous box that I was just on so that way I wouldnt have to re type the command to get back to the original menu?
if(dialogid == xXitsgodzillaXx)
{
if(!response)
{
// show the previous box here
}
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;
}