SA-MP Forums Archive
StopLoopingAnim - 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)
+--- Thread: StopLoopingAnim (/showthread.php?tid=574191)



StopLoopingAnim - aCloudy - 14.05.2015

Hello, When I use "StopLoopingAnim" function, It says: undefined symbol: "StopLoopingAnim".
Can someone give me the stock or the include file of it ?

Thanks.


Re: StopLoopingAnim - Konstantinos - 14.05.2015

If you ****** it, you get:
pawn Код:
StopLoopingAnim(playerid)
{
    gPlayerUsingLoopingAnim[playerid] = false;
    ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
    ClearAnimations(playerid);
}
Of course, you'd have to declare the array as global and set it to true when a looping anim is being applied.

I don't get why don't you try to code what you want/like instead of getting functions from other scripts.


Re: StopLoopingAnim - aCloudy - 14.05.2015

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
If you ****** it, you get:
pawn Код:
StopLoopingAnim(playerid)
{
    gPlayerUsingLoopingAnim[playerid] = false;
    ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
    ClearAnimations(playerid);
}
Of course, you'd have to declare the array as global and set it to true when a looping anim is being applied.

I don't get why don't you try to code what you want/like instead of getting functions from other scripts.
Thanks a lot!
+REP'd lol


Re: StopLoopingAnim - aCloudy - 14.05.2015

But wait, This function doesn't clear the this anim: SetPlayerSpecialAction(ID, SPECIAL_ACTION_CUFFED);

I already tried to use StopLoopingAnim but the player didn't get un-cuffed.


Re: StopLoopingAnim - Konstantinos - 14.05.2015

Don't get confused - it's a special action, not an animation.

pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);



Re: StopLoopingAnim - aCloudy - 14.05.2015

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Don't get confused - it's a special action, not an animation.

pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
Ah okay, Thanks again