SA-MP Forums Archive
Small Animation Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Small Animation Problem (/showthread.php?tid=92434)



Small Animation Problem - *James* - 20.08.2009

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


Re: Small Animation Problem - Yuryfury - 20.08.2009

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


Re: Small Animation Problem - *James* - 20.08.2009

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


Re: Small Animation Problem - Redgie - 20.08.2009

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


Re: Small Animation Problem - *James* - 20.08.2009

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 ?


Re: Small Animation Problem - Redgie - 20.08.2009

Possibly, but as I say, it works for me


Re: Small Animation Problem - *James* - 20.08.2009

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