SA-MP Forums Archive
Why sometimes the animations doesn't work? - 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: Why sometimes the animations doesn't work? (/showthread.php?tid=538775)



Why sometimes the animations doesn't work? - Rodney Francalim - 24.09.2014

When it doesn't work, I flood the /crack, example, to work.


How can I make sure that the anim will work for the first time?


Re : Why sometimes the animations doesn't work? - Dutheil - 24.09.2014

I don't know the reason of it, but look that : https://sampforum.blast.hk/showthread.php?tid=292813


Re: Why sometimes the animations doesn't work? - Dignity - 24.09.2014

Preload the anim library

pawn Код:
stock PreloadAnimLib(playerid, animlib[])
    ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);



Re: Why sometimes the animations doesn't work? - Rodney Francalim - 24.09.2014

Quote:
Originally Posted by Mionee
Посмотреть сообщение
Preload the anim library

pawn Код:
stock PreloadAnimLib(playerid, animlib[])
    ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
Thank you.

But when I use it? Before any animation, right?

And can I use like this?
pawn Код:
#define PreloadAnimLib(%0,%1)   ApplyAnimation(%0,%1,"null",0.0,0,0,0,0,0)



Re: Why sometimes the animations doesn't work? - Dignity - 24.09.2014

You should preload them when a player connects/spawns, & yes


Re: Why sometimes the animations doesn't work? - Rodney Francalim - 24.09.2014

Just once?


Re: Why sometimes the animations doesn't work? - Dignity - 24.09.2014

Yes.