11.03.2016, 01:18
How do I go from dialog to dialog? example:
How do I go from dialog1 to dialog2 when clicking on button1?
I hope I could explain it well.
---
How do you go from dialog1 to dialog2 by clicking button1 on dialog1
PHP код:
CMD:bla(playerid, params[])
{
ShowPlayerDialog(playerid, dialog1, bla, "bla", "bla", "button1", "button2");
return 1;
}
PHP код:
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;
}
---
How do you go from dialog1 to dialog2 by clicking button1 on dialog1