SA-MP Forums Archive
Animation BUG - 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: Animation BUG (/showthread.php?tid=524806)



Animation BUG - danish007 - 08.07.2014

ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 3.0, 0, 0, 0, 0, 0, 1);

im using animations lot of animation and this is one of them.

like when i use command /robbery first time anim dosent' work and if use it again it works why?


Re : Animation BUG - S4t3K - 08.07.2014

It's a SAMP synchronization problem.

Some fixes have been released (I think one of them is present in the fixes.inc include)

I have made one but I haven't any idea about if it's working or not

PHP код:

stock FIX_ApplyAnimation
(playeridanimlib[], animname[], Float:fDeltalooplockxlockyfreezetimeforcesync 0)
{
      do 
ApplyAnimation(playeridanimlibanimnamefDeltalooplockxlockyfreezetimeforcesync)
      while(
GetPlayerAnimationIndex(playerid) == 0);
}


#if defined _ALS_ApplyAnimation
      #undef ApplyAnimation
#else
      #define _ALS_ApplyAnimation
#endif

#define ApplyAnimation FIX_ApplyAnimation 



Re: Animation BUG - Threshold - 08.07.2014

Or search up 'PreloadAnimLib'.