SA-MP Forums Archive
Dialog Help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog Help (/showthread.php?tid=121382)



Dialog Help - lRaged - 16.01.2010

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?


Re: Dialog Help - lRaged - 16.01.2010

Eh, bump?


Re: Dialog Help - MadeMan - 16.01.2010

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



Re: Dialog Help - lRaged - 16.01.2010

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.


Re: Dialog Help - ray187 - 16.01.2010

Код:
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;