Need help with dialog
#1

Hi all. I have this dialog code. When I test and run it, it have bugs. When I choose any option, system show for me for example TEXT messages, but also showing dialog ( ID 9500 ). How to do, that when I choose any option, system will shows that option, but not dialog? When I delete
Код:
ShowPlayerDialog(playerid,9500,DIALOG_STYLE_LIST, "Intro", "{EBBD63}•{ffffff} One\n{EBBD63}•{ffffff} Two\n{EBBD63}•{ffffff} Three\n{EBBD63}•{ffffff} Lala", "Choose", "");
line, its fine, but I need that line, when player press ESC system will return dialog, not disable it.

Код:
 else if(dialogid==9500)
	{
	    if(response)
	    {
	        if(listitem==0)
	        {
		new msg[1250];
		strcat(msg,"{FFFFFF}TEXT\n\n");
		ShowPlayerDialog(playerid,6971,DIALOG_STYLE_MSGBOX,"Intro",msg,"Back","");
	        }
	        else if(listitem==1)
	        {
               ShowSecIntro(playerid);
	        }
	        else if(listitem==2)
	        {
		ShowThIntro(playerid);
	        }
	        else if(listitem==3)
	        {
 		SendClientMessage(playerid, -1, "{EBBD63}•{ffffff} TEXT");
                SendClientMessage(playerid, -1, "{EBBD63}•{ffffff} TEXT");        
	        }
	        ShowPlayerDialog(playerid,9500,DIALOG_STYLE_LIST, "Intro", "{EBBD63}•{ffffff} One\n{EBBD63}•{ffffff} Two\n{EBBD63}•{ffffff} Three\n{EBBD63}•{ffffff} Lala", "Choose", "");
		}
	}
Reply


Messages In This Thread
Need help with dialog - by ,TomY' - 25.07.2017, 18:17
Re: Need help with dialog - by BrianFaria - 25.07.2017, 18:53
Re: Need help with dialog - by Astralis - 25.07.2017, 19:14
Re: Need help with dialog - by ,TomY' - 25.07.2017, 19:26
Re: Need help with dialog - by Astralis - 25.07.2017, 19:30
Re: Need help with dialog - by Dayrion - 26.07.2017, 09:03

Forum Jump:


Users browsing this thread: 2 Guest(s)