Playin' anim problem
#1

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?
Reply
#2

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;
}
Reply
#3

Thanks! It worked!

+REP
Reply
#4

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

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

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.
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)