SA-MP Forums Archive
Fishing animation 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)
+--- Thread: Fishing animation bug (/showthread.php?tid=562387)



Fishing animation bug - Supermaxultraswag - 08.02.2015

Код:
			SetTimerEx("Fish", 2000, false, "i", playerid);
			TogglePlayerControllable(playerid,0);
			ApplyAnimation(playerid,"SWORD","sword_block",50.0,0,1,0,1,1);
Why sometimes animation works and sometimes not? Is this some kind of sa-mp bug?


Re: Fishing animation bug - Crayder - 08.02.2015

First off, that's not the fishing animation.
Second, you need to explain more. You are not telling us what is going wrong.

Correct parameters for ApplyAnimation:
(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
Recommended settings:
(playerid, "SWORD", "sword_block", 4.1, 1, 1, 1, 1, 1, 1);


Re: Fishing animation bug - Supermaxultraswag - 08.02.2015

Quote:
Originally Posted by Crayder
Посмотреть сообщение
First off, that's not the fishing animation.
K den sword_block animation. Much difference

Quote:
Originally Posted by Crayder
Посмотреть сообщение
You are not telling us what is going wrong.
Quote:
Originally Posted by Supermaxultraswag
Посмотреть сообщение
Why sometimes animation works and sometimes not? Is this some kind of sa-mp bug?
I do

Quote:
Originally Posted by Crayder
Посмотреть сообщение
Correct parameters for ApplyAnimation:
(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
Recommended settings:
(playerid, "SWORD", "sword_block", 4.1, 1, 1, 1, 1, 1, 1);
Still, sometimes animation play, sometimes not


AW: Fishing animation bug - Bluescreen - 08.02.2015

Try to preload the animlib before you start the animation, see here: https://sampforum.blast.hk/showthread.php?tid=377330


Re: Fishing animation bug - Crayder - 09.02.2015

Also something hilarious about the fishing anim (for the children here): Purple Dilde weapon, crouch, and fishing anim all put together. DO IT TO SEE WHAT HAPPENS!