CMD:bla(playerid, params[])
{
ShowPlayerDialog(playerid, dialog1, bla, "bla", "bla", "button1", "button2");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==dialog1 && response==1)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, dialog2, bla, "bla", "bla", "button1", "button2");
switch(listitem)
case 0:
{
// Something like this?
}
}
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
if(dialogid == dialog1) {
if(response) {
ShowPlayerDialog(playerid, dialog2, bla, "bla", "bla", "bla", "bla");
}
return 1;
}
return 0;
}
There is no seperate procedure for showing another dialog. Showing another one while another is active will overwrite the current one. Note that OnDialogResponse automatically closes out the dialog, you may reshow it manually when needed.
|