Animation doesn't work
#1

I am applying a animation but it doesn't do anything

here is my code:
pawn Код:
ApplyAnimation(playerid, "FOOD", "EAT_burger", 4.1, 0, 1, 1, 0, 0, 1);
Reply
#2

Did you try applying the animation twice? You might need to pre-load the anim library.

http://forum.sa-mp.com/showpost.php?...5&postcount=13
Reply
#3

i did the preload and still nothing back then it worked for me i can't seem to figure out why it doesn't now
Reply
#4

Try adding a return 1;

https://sampwiki.blast.hk/wiki/ApplyAnimation
Reply
#5

Try this:
pawn Код:
ClearAnimations(playerid);
ApplyAnimation(playerid, "FOOD", "EAT_burger", 4.1, 0, 1, 1, 0, 0, 1),ApplyAnimation(playerid, "FOOD", "EAT_burger", 4.1, 0, 1, 1, 0, 0, 1);
Reply
#6

Quote:
Originally Posted by Hwang
Посмотреть сообщение
Try this:
pawn Код:
ClearAnimations(playerid);
ApplyAnimation(playerid, "FOOD", "EAT_burger", 4.1, 0, 1, 1, 0, 0, 1),ApplyAnimation(playerid, "FOOD", "EAT_burger", 4.1, 0, 1, 1, 0, 0, 1);
He said he is already preloading the animations, you don't need to keep playing it twice..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)