25.07.2017, 18:17
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
line, its fine, but I need that line, when player press ESC system will return dialog, not disable it.
Код:
ShowPlayerDialog(playerid,9500,DIALOG_STYLE_LIST, "Intro", "{EBBD63}•{ffffff} One\n{EBBD63}•{ffffff} Two\n{EBBD63}•{ffffff} Three\n{EBBD63}•{ffffff} Lala", "Choose", "");
Код:
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", ""); } }