25.09.2017, 18:29
Try this :
PHP код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Put your title here", "Put your description here", "Close", "Next Page");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1) //Insert your dialogid here, for this tutorial I will put "1"
{
if(!response) //Since the Next Page button is on the right, I will use !response
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "Put your title here", "Put your description here", "Close", "Next Page"); //This will show the next page after you click the Next Page button
}
return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
}
return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}