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)
+--- Thread: Dialog help (/showthread.php?tid=507284)



Dialog help - Slicebook - 16.04.2014

How do I fix that if Dialog passed over each option, re-issue the previous Dialog? some help?

Pl. ShowPlayerDialog(playerid, DIALOG_MOTOZAS, DIALOG_STYLE_LIST, "Help", Help 1\nHelp 2, "Ok", "Exit");
Код:
	else if( dialogid == DIALOG_MOTOZAS )
                {
			if( !response )
                        {
                                return 1;
                        }
                        if( listitem == 0)
                        {
             		SendClientMessage(playerid,-1,"Blablabla");
                        //here to help inject Dialog again
                        }
                        if( listitem == 1)
                        {
                        SendClientMessage(playerid,-1,"GoatGoat");
                        //again you bring Dialog
                        }
                 }
anyone know?


Re: Dialog help - StuartD - 16.04.2014

You would put your ShowPlayerDialog there again.

Код:
	else if( dialogid == DIALOG_MOTOZAS )
                {
			if( !response )
                        {
                                return 1;
                        }
                        if( listitem == 0)
                        {
             		SendClientMessage(playerid,-1,"Blablabla");
                         ShowPlayerDialog(playerid, DIALOG_MOTOZAS, DIALOG_STYLE_LIST, "Help", Help 1\nHelp 2, "Ok", "Exit");

                        }
                        if( listitem == 1)
                        {
                        SendClientMessage(playerid,-1,"GoatGoat");
                        ShowPlayerDialog(playerid, DIALOG_MOTOZAS, DIALOG_STYLE_LIST, "Help", Help 1\nHelp 2, "Ok", "Exit");

                        }
                 }