Animations bug - 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: Animations bug (
/showthread.php?tid=133403)
Animations bug -
SiJ - 12.03.2010
Hey,
This is well known bug, but in 0.2X, it could be fixed by applying the same animation twice..
But now sometimes it doesn't help..
I have this:
pawn Код:
PreloadAnimLib(playerid, animlib[]) ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
//OnPlayerConnect
PreloadAnimLib(playerid,"DANCING");
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //just incase
//OnPlayerRequestClass
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
But it doesn't applies when I connect and it shows me spawn screen.
I have to change class ( < or > ) and it applies after changing the class...
Is there any other way to fix it?
P.S. I also tried applying it two times OnPlayerRequestClass callback, but still it doesn't applies at first.. :\
Re: Animations bug -
Calgon - 12.03.2010
Try use it under OnPlayerSpawn().
Re: Animations bug -
SiJ - 12.03.2010
Quote:
Originally Posted by FreddoX [BINMAN
]
Try use it under OnPlayerSpawn().
|
OnPlayerSpawn is called
after OnPlayerRequestClass..
I'll try to make something with timer, maybe that will help...
Re: Animations bug -
biltong - 12.03.2010
Quote:
Originally Posted by SiJ
Quote:
Originally Posted by FreddoX [BINMAN
]
Try use it under OnPlayerSpawn().
|
OnPlayerSpawn is called after OnPlayerRequestClass..
I'll try to make something with timer, maybe that will help...
|
Yeah, set it to like half a second or something.