dialog question
#2

OnplayerDialog responce.



Code:
  public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])// Begining rules
{
	if(dialogid == 1)
	{
		if(response)
		{
		  SendClientMessage(playerid,COLOR_YELLOW, "accepted button 1.");
		}
		else
		{
		  SendClientMessage(playerid, 0xFF0000FF, "denied");
		}
    return 1;
	}
	if(dialogid == 2)
	{
	if(response)
	{
  SendClientMessage(playerid,COLOR_YELLOW, "thanks for accepting the rules!");
	}
  return 1;
  }
  return 0;
  }
Reply


Messages In This Thread
dialog question - by aircombat - 02.03.2010, 18:22
Re: dialog question - by -Rebel Son- - 02.03.2010, 18:25
Re: dialog question - by aircombat - 02.03.2010, 18:27
Re: dialog question - by aircombat - 02.03.2010, 19:30
Re: dialog question - by Ironboy500 - 02.03.2010, 19:36
Re: dialog question - by Torran - 02.03.2010, 19:51
Re: dialog question - by aircombat - 02.03.2010, 20:09
Re: dialog question - by Joe Staff - 02.03.2010, 21:10
Re: dialog question - by DarkPower - 02.03.2010, 21:13

Forum Jump:


Users browsing this thread: 2 Guest(s)