Dialog issues Message box with pages - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog issues Message box with pages (
/showthread.php?tid=642107)
Dialog issues Message box with pages -
Mobtiesgangsa - 24.09.2017
I'M having issues with some of my dialogs iv've created
a message box to show my commands i made
first page
[Next] > for the next page [Close] > to close it
second page
[Close]
anyone can help me out
Re: Dialog issues Message box with pages -
Puff - 25.09.2017
Include pawn code aswell.
Re: Dialog issues Message box with pages -
STRIKER19501 - 25.09.2017
it will be like this
Quote:
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "HELP", "Bla bla bla", "OK", "Close");
|
PHP код:
ShowPlayerDialog(playerid, dialog number/name here, dialog style here, heading, your stuff, ok, close);
Re: Dialog issues Message box with pages -
Mobtiesgangsa - 25.09.2017
im not trying here to make a basic dialog i allready made a list of dialogs all selectable im trying to make msgbox in pages i asked for help on that issue i dont need basic stuff i need how it works
Re: Dialog issues Message box with pages -
STRIKER19501 - 25.09.2017
Quote:
Originally Posted by Mobtiesgangsa
im not trying here to make a basic dialog i allready made a list of dialogs all selectable im trying to make msgbox in pages i asked for help on that issue i dont need basic stuff i need how it works
|
You should have explained it at the start and here is an idea
PHP код:
ondialogresponse
show another dialog, simple
Re: Dialog issues Message box with pages -
AfiqIqbal - 25.09.2017
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.
}
Re: Dialog issues Message box with pages -
kAn3 - 25.09.2017
Quote:
Originally Posted by Mobtiesgangsa
im not trying here to make a basic dialog i allready made a list of dialogs all selectable im trying to make msgbox in pages i asked for help on that issue i dont need basic stuff i need how it works
|
You're actually asking for basic stuff, be more polite please.
https://sampwiki.blast.hk/wiki/OnDialogResponse
Re: Dialog issues Message box with pages -
SetPlayerNameTag - 26.09.2017
Use a value to store the current page of a player, and use a function to list them