Dialog issues Message box with pages
#1

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
Reply
#2

Include pawn code aswell.
Reply
#3

it will be like this
Quote:

ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "HELP", "Bla bla bla", "OK", "Close");

PHP код:
ShowPlayerDialog(playeriddialog number/name heredialog style hereheading,  your stuff,  ok,  close); 
Reply
#4

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
Reply
#5

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
Reply
#6

Try this :

PHP код:
ShowPlayerDialog(playerid1DIALOG_STYLE_MSGBOX"Put your title here""Put your description here""Close""Next Page");
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    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(playerid2DIALOG_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.

Reply
#7

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
Reply
#8

Use a value to store the current page of a player, and use a function to list them
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)