SA-MP Forums Archive
Playin' anim problem - 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: Playin' anim problem (/showthread.php?tid=330682)



Playin' anim problem - !LukniS! - 02.04.2012

Hi.

Why anims are playin' after I type command 2 times?

Code:
CMD:help(playerid, params[])
{
   ApplyAnimation(playerid, "MEDIC", "CPR", 4.000000, 1, 0, 0, 0, 5000, 1);
   return 1;
}
First, I type in /help, no response. When I type /help second time, animation is playin'.

Where's the problem?


Re: Playin' anim problem - blank. - 02.04.2012

I had the same problem, I solved it by initializing the animation libraries on player spawn.(This is a modified stock of a stock I found on the forums, don't remember where though.)
Code:
stock PreloadAnims(playerid)
{  
    ApplyAnimation(playerid,"SHOP","null",0,0,0,0,0,1);
    ApplyAnimation(playerid,"BEACH","null",0,0,0,0,0,1);
    ApplyAnimation(playerid,"FOOD","null",0,0,0,0,0,1);
    ApplyAnimation(playerid,"COP_AMBIENT","null",0,0,0,0,0,1);
    ApplyAnimation(playerid,"INT_HOUSE","null",0,0,0,0,0,1);
    ApplyAnimation(playerid,"DEALER","null",0,0,0,0,0,1);
	ApplyAnimation(playerid,"SMOKING","null",0,0,0,0,0,1);
    ApplyAnimation(playerid,"FOOD","null",0,0,0,0,0,1);
    ApplyAnimation(playerid,"PARK","null",0,0,0,0,0,1);
    ApplyAnimation(playerid,"CRACK","null",0,0,0,0,0,1);
    ApplyAnimation(playerid,"CARRY","null",0,0,0,0,0,1);
	ApplyAnimation(playerid,"RAPPING","null",0,0,0,0,0,1);
    return 1;
}



Re: Playin' anim problem - !LukniS! - 02.04.2012

Thanks! It worked!

+REP


Re: Playin' anim problem - AnonScripter - 10.11.2013

Quote:
Originally Posted by !LukniS!
View Post
Thanks! It worked!

+REP
how did you fix it ? i have the same problem


Re: Playin' anim problem - DanishHaq - 10.11.2013

Quote:
Originally Posted by AnonScripter
View Post
how did you fix it ? i have the same problem
Be careful on which topics you bump, that user has been inactive for 11 months and will not reply. Make a new topic for any problems.


Re: Playin' anim problem - ikkentim - 11.11.2013

Quote:
Originally Posted by AnonScripter
View Post
how did you fix it ? i have the same problem
Have you actually tried reading the replies? It reveals the answer.