Help with DialogResponse
#1

Need a little be of help, i am currently working on a OnDialogResponse, and i have everything working, but i have it set out like this

Код:
CMD:test(playerid, params[])
}
     ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Blah", "Blah", "Select", "Close");
     return 1;
{
(this is not the real code from my script)

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(response)
        {
            switch(dialogid == 0)
           {
               case 1:
               {
                  switch(listitem)
                 {
                case 0:
               {
               ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Blah blah", "Blah blah\n", "Select", "Close");
               }
               case 1:
               {
               ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Blah blah", "Blah blah\n", "Select", "Close");
               }
               case 2:
               {
               ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Blah blah", "Blah blah\n", "Select", "Close");
               }
           }
        }
 	}
 }
(this is not the real OnDialogResponse out of my script), I wanted it so when i pressed on the DialogResponse it would do something, like lets say set a check point or something, if you know what i mean and know how to help me, please do post, i would be grateful! thank you!
Reply


Messages In This Thread
Help with DialogResponse - by LeXuZ - 24.11.2014, 17:37
Re: Help with DialogResponse - by Jakwob - 24.11.2014, 17:48
Re: Help with DialogResponse - by LeXuZ - 24.11.2014, 17:51
Re: Help with DialogResponse - by Jakwob - 24.11.2014, 18:02
Re: Help with DialogResponse - by LeXuZ - 24.11.2014, 18:47

Forum Jump:


Users browsing this thread: 1 Guest(s)