ondialog
#1

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

Sorry
Reply
#3

Hmm work fine for me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)