SA-MP Forums Archive
ondialog - 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: ondialog (/showthread.php?tid=441587)



ondialog - OpticKiller - 03.06.2013

hello guys nothing really bad i have made this dialog below i have made the commands messagebox show when you click on it on the dialog_style_list but am trying to find out how can i link up the jobs so let me say i make a DIALOG_STYLE_LIST saying Farm job i will click on it how would i make it show the next page as a MSGBOX


Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	switch(dialogid)
	{
	    case 100:
	    {
	        if(!response)
	        {
	            ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_LIST,"Account Menu","Commands\nJobs\nRules\nServer Info","Continue","Close");
				return 1;
			}
		}
	}
	switch(listitem)
	{
	    case 0:
	    {
	        ShowPlayerDialog(playerid, 51, DIALOG_STYLE_MSGBOX,"Commands","/stats /b /(n)ewbie /(o)oc /(l)ow /(s)hout) /report \n","Continue","Close");
	    }
	    case 1:
	    {
	        ShowPlayerDialog(playerid, 52, DIALOG_STYLE_LIST,"Jobs Info","\nDrug Dealer \nFarm Worker \nTaxi Driver \nPublic Workers","Okay","Close");
		}
		case 2:
		{
		    ShowPlayerDialog(playerid, 53, DIALOG_STYLE_MSGBOX,"DrugDealer"," This job can be found at Los Santos look for a icon on the map","Continue","Close");
		}
		case 3:
		{
		    ShowPlayerDialog(playerid, 54, DIALOG_STYLE_MSGBOX,"Farm Worker","This job can be found at Blueberry Farm look for a icon on the map","Continue","Close");
		}
	}
	return 1;
}



Re: ondialog - SupaVZ - 03.06.2013

Sorry


Re: ondialog - SupaVZ - 03.06.2013

Hmm work fine for me.