Animation probleme
#1

When i create an animation command it doesnt play it with once but at the 2nd time i type the cmd it works
Can anyone help me because my script need to be plaid at the first time , Thanks !!
Reply
#2

You have to preload the animation.
Reply
#3

Game need to Load anims from game files, you need to preload anim library at playerspawn

use this one anywhere in script but NOT UNDER something.

pawn Код:
PreloadAnimLib(playerid, animlib[])
{
    ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}
and OnPlayerSpawn
pawn Код:
PreloadAnimLib(playerid,animlib[]);
Reply
#4

I get this error?


error 017: undefined symbol "animlib"
Reply
#5

Look at the the FS that came with the sa-mp package. Called gl_actions. It does exactly what you want. Just incorporate it into your GM or just use it as a FS, and add more animations like I did.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)