20.08.2009, 02:52
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...
Thanks,
//James
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; }
//James