Animation BUG
#1

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

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 
Reply
#3

Or search up 'PreloadAnimLib'.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)