Animation dosent work the first time but second - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Animation dosent work the first time but second (
/showthread.php?tid=129374)
Animation dosent work the first time but second -
Torran - 21.02.2010
Hello,
I have this code:
pawn Код:
PreloadAnimLib(playerid,"FOOD");
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,1,1,1,1,1);
And if i type in the command, Nothing happens,
If i type it again it does the animation,
Does anyone know what im doing wrong
Re: Animation dosent work the first time but second -
Torran - 22.02.2010
Anyone?
Re: Animation dosent work the first time but second -
Nekom - 22.02.2010
put the PreloadAnimLib in OnPlayerSpawn
Re: Animation dosent work the first time but second -
Torran - 22.02.2010
Nope still have to do it twice
Re: Animation dosent work the first time but second -
Rizard - 22.02.2010
Quote:
|
Originally Posted by Don Correlli
Quote:
|
Originally Posted by GMusicOn
Does the animation needs to be "preloaded" or something like that?
|
Yes, there's an animation filterscript in the samp-server-package. Check it out.
|
meaning, compare the animation fs included to your script
Re: Animation dosent work the first time but second -
aNdReSkKkK - 22.02.2010
try a timer that plays that animation after 250 miliseconds
Re: Animation dosent work the first time but second -
Torran - 22.02.2010
Quote:
|
Originally Posted by Rizard
Quote:
|
Originally Posted by Don Correlli
Quote:
|
Originally Posted by GMusicOn
Does the animation needs to be "preloaded" or something like that?
|
Yes, there's an animation filterscript in the samp-server-package. Check it out.
|
meaning, compare the animation fs included to your script
|
Im following what Don Correlli has told me before.. Or joe staff, I cant remember,
But i got preloadanimlib from vactions.pwn, It used to work but it dont want to anymore