Small Animation Problem
#1

Hi,

I have created a simple menu for some animations and they all work but one; SPECIAL_ACTION_SITTING.

I cant see anything wrong with this part of the code so i wanted to ask for some help...

Код:
AddMenuItem(animations, 0, "Dance");
AddMenuItem(animations, 0, "Handsup");
AddMenuItem(animations, 0, "Sitting");
Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
  new Menu:CurrentMenu = GetPlayerMenu(playerid);
  if(CurrentMenu == animations)
 {
    switch(row)
  {
  case 0: //Dance
  {
  SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
  }
  	case 1: //Handsup
	{
  SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  }
  	case 2: //Sitting
	{
  SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SITTING);
  }
  }
 }
 	return 1;
}
Thanks,

//James
Reply


Messages In This Thread
Small Animation Problem - by *James* - 20.08.2009, 02:52
Re: Small Animation Problem - by Yuryfury - 20.08.2009, 03:08
Re: Small Animation Problem - by *James* - 20.08.2009, 13:23
Re: Small Animation Problem - by Redgie - 20.08.2009, 13:24
Re: Small Animation Problem - by *James* - 20.08.2009, 14:08
Re: Small Animation Problem - by Redgie - 20.08.2009, 14:09
Re: Small Animation Problem - by *James* - 20.08.2009, 14:27

Forum Jump:


Users browsing this thread: 2 Guest(s)