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
#2

I don't see anything wrong with it, try using "12" instead of "SPECIAL_ACTION_SITTING"
Reply
#3

Quote:
Originally Posted by Yuryfury
I don't see anything wrong with it, try using "12" instead of "SPECIAL_ACTION_SITTING"
Nope that dident work
Reply
#4

Try it in a variety of different scripts, it works fine on my server
Reply
#5

I changed the SPECIAL_ACTION_SITTING to SPECIAL_ACTION_HANDSUP to see if the handsup worked. it did so is this a problem with the SPECIAL_ACTION_SITTING ?
Reply
#6

Possibly, but as I say, it works for me
Reply
#7

I solved it by using ApplyAnimation(playerid,"SUNBATHE","ParkSit_M_Idle C",4.1,0,1,1,1,1); instead
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)