14.09.2015, 07:21
You have to preload the animation.
Might be a better way of preloading but I use this way.
Just put the lib in new lines.. "WUZI", "ect"
and remove the double ApplyAnimations in your script
PHP код:
// Somewhere in your script
static const AnimLibs[][] =
{
"WUZI"
};
PreloadAnimLibFor(id)
{
for(new i = 0, len = sizeof(AnimLibs); i < len; i++)
{
ApplyAnimation(id, AnimLibs[i], "null", 0.0, 0, 0, 0, 0, 0, 0);
}
}
// OnPlayerConnect
PreloadAnimLibFor(playerid);
Just put the lib in new lines.. "WUZI", "ect"
and remove the double ApplyAnimations in your script