Why dialog is not working?
#1

Hi,

In top:
Код:
enum
{
	DIALOG_UNUSED,

	DIALOG_LOGIN,
	DIALOG_REGISTER,
	DIALOG_WEAPONS
};
This is my dialog cmd:
Код:
CMD:build(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 1.0, 2795.5701,2793.7720,17.6763))
    {
        ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", "Knife\nBaseball Bat\nAk-47\nMP5\nGrenade\nSniper", "Build", "Cancel");
    }
	return 1;
}
This is my dialog response code:
Код:
	if(dialogid == DIALOG_WEAPONS)
		{
	  			switch(listitem)
	  			{
	  			    case 0:
	  			    {
	  			        InventoryWeapon[playerid][Knife]++;
                                        SendClientMessage(playerid,-1,"Knife Given!");
	  			    }
	  			    case 1:
	  			    {
	  			        InventoryWeapon[playerid][BaseballBat]++;
	  			    }
	  			    case 2:
	  			    {
	  			        InventoryWeapon[playerid][Ak47]++;
	  			    }
	  			    case 3:
	  			    {
	  			        InventoryWeapon[playerid][MP5]++;
	  			    }
	  			    case 4:
	  			    {
	  			        InventoryWeapon[playerid][Grenade]++;
	  			    }
	  			    case 5:
	  			    {
	  			        InventoryWeapon[playerid][Sniper]++;
	  			    }
			}
Only this dialog is showing but not giving things
Reply


Messages In This Thread
Why dialog is not working? - by akib - 27.05.2017, 09:03
Re: Why dialog is not working? - by Wary - 27.05.2017, 10:20
Re: Why dialog is not working? - by CodeStyle175 - 27.05.2017, 10:26
Re: Why dialog is not working? - by akib - 27.05.2017, 10:32
Re: Why dialog is not working? - by Deroxi - 27.05.2017, 10:39
Re: Why dialog is not working? - by akib - 27.05.2017, 11:42
Re: Why dialog is not working? - by adri[4]Life - 27.05.2017, 12:22
Re: Why dialog is not working? - by akib - 27.05.2017, 22:17
Re: Why dialog is not working? - by iLearner - 27.05.2017, 22:28
Re: Why dialog is not working? - by akib - 28.05.2017, 04:37

Forum Jump:


Users browsing this thread: 1 Guest(s)