Dialog Help
#1

Right. I'm stumped. I mean, yeah I'm new to scripting but I have read guides and tutorials but I STILL can't grasp this.

Basically, I have this code:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(listitem == 0)
        {
          new housedetails[] = "-MY TEXT HERE";
          ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "-MY TEXT HERE", housedetails, "Continue", "Quit");
        }
        return 1;
    }
    return 0;
}
I want it to be so, when you click the Button 1 on the ShowPlayerDialog, it'll go back to the original dialog (dialogid == 1).

Can anyone help me?
Reply
#2

Eh, bump?
Reply
#3

pawn Код:
if(dialogid == 1)
{
    if(response == 1)
    {
        ShowPlayerDialog(... // your dialog 1
    }
}
Reply
#4

Quote:
Originally Posted by MadeMan
pawn Код:
if(dialogid == 1)
{
    if(response == 1)
    {
        ShowPlayerDialog(... // your dialog 1
    }
}
I want it so if it's on the
pawn Код:
if(listitem == 0)
You press the left button and it goes back to the first one.

@That's just text like "blahblahblah" etc.
Reply
#5

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 1)
	{
		if(response == 1)
			if(listitem == 0)
			{
				new housedetails[] = "-MY TEXT HERE";
				ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "YOUR TITLE", housedetails, "Continue", "Quit");
			}
		return 1;
	}
	if(dialogid == 2){
		if(response == 1){
			ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"My House Options","blah","Select","Finish");
	}
	return 0;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)