ShowPlayerDialog with no response?
#3

Well example i have this

And you did Dialogue wrong way. heres The right way:

Code:
	if (strcmp("/cmds",cmdtext,true) == 0)
	{
	  ShowPlayerDialog(playerid, 111, DIALOG_STYLE_LIST, "Server Commands", "Register on Server\Login On Server", "Select", "Cancle");
		return 1;
	}


Just change my OnDialogeResponse to what you need

Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if (dialogid == 111)
	{
	if(response)
	{
	if(listitem == 0) //Register on server
	{
    //Do Something here
	}
	if(listitem == 1) //Login onserver
	{
    //Do Something here
	}
	}
	return 1;
	}

  return 0;
}
Reply


Messages In This Thread
ShowPlayerDialog with no response? - by MummyKillerSLO - 02.02.2010, 14:14
Re: ShowPlayerDialog with no response? - by MummyKillerSLO - 02.02.2010, 17:18
Re: ShowPlayerDialog with no response? - by hardstop - 02.02.2010, 17:51
Re: ShowPlayerDialog with no response? - by LuxurioN™ - 02.02.2010, 18:00

Forum Jump:


Users browsing this thread: 1 Guest(s)