Using y_dialog with y_inline hangs the normal ShowPlayerDialogs
#8

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
I don't see why it wouldn't be. Just try to use a size that is not exaggeration.
Sure. I've encountered one more problem; the initial problems are fixed at all. But now, for example I have a 2-3 stage gui and at some point it doesnt work anymore. Test:

CMD:

Код:
CMD:testcmd(playerid) {
    if(IsPlayerConnected(playerid)) {
        ShowPlayerDialogEx(playerid, 5617, DIALOG_STYLE_LIST, "Test Me", "Test1\nTest2\nTest3\nTest4\nTest4\nTest5", "Wybierz", "Wyjdź");
    }
}
OnDialogResponses:

Код:
else if(dialogid == 5617)
	    {
	        if(response)
	        {
		        switch(listitem)
				{
				    case 0:
					{
		        		ShowPlayerDialogEx(playerid,5618,DIALOG_STYLE_MSGBOX,"Test 1","TTest 1","Go back","Exit");
					}
					case 1:
					{
					    ShowPlayerDialogEx(playerid,5618,DIALOG_STYLE_MSGBOX,"Test 2","TTest 2","Go back","Exit");
					}
					case 2:
					{
					    ShowPlayerDialogEx(playerid,5618,DIALOG_STYLE_MSGBOX,"Test 3","TTest 3","Go back","Exit");
					}
	    			case 3:
					{
					    ShowPlayerDialogEx(playerid,5618,DIALOG_STYLE_MSGBOX,"Test 4","TTest 4","Go back","Exit");
					}
  					case 4:
					{
					    ShowPlayerDialogEx(playerid,5618,DIALOG_STYLE_MSGBOX,"Test 5","TTest 5","Go back","Exit");
					}
				}
			}
		}
		else if(dialogid == 5618) {
			if(response) {
				ShowPlayerDialogEx(playerid, 5617, DIALOG_STYLE_LIST, "Test Me", "Test1\nTest2\nTest3\nTest4\nTest4\nTest5", "SELECT", "EXIT");
			}
		}
Now, whenever I press "Go Back" on "Test X" msgBox without y_dialog included, it works perfectly. But when I do it with y_dialog included, the GUI just closes and again no respond is sent to the OnDialogResponse.

Would appreciate any help.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)