SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 02/04/2012, 07:06 AM   #1
!LukniS!
Little Clucker
 
Join Date: Dec 2011
Posts: 25
Reputation: 4
Default Playin' anim problem

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?
!LukniS! is offline   Reply With Quote
Old 02/04/2012, 07:37 AM   #2
blank.
Big Clucker
 
Join Date: Mar 2012
Posts: 140
Reputation: 19
Default Re: Playin' anim problem

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;
}
blank. is offline   Reply With Quote
Old 02/04/2012, 07:51 AM   #3
!LukniS!
Little Clucker
 
Join Date: Dec 2011
Posts: 25
Reputation: 4
Default Re: Playin' anim problem

Thanks! It worked!

+REP
!LukniS! is offline   Reply With Quote
Old 10/11/2013, 11:54 PM   #4
AnonScripter
Gangsta
 
Join Date: Sep 2013
Posts: 591
Reputation: 6
Default Re: Playin' anim problem

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

+REP
how did you fix it ? i have the same problem
AnonScripter is offline   Reply With Quote
Old 10/11/2013, 11:56 PM   #5
DanishHaq
High-roller
 
Join Date: Sep 2011
Location: Manchester, England, United Kingdom
Posts: 1,351
Reputation: 134
Default Re: Playin' anim problem

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.
__________________
SA-MP Scripting knowledge: 80%
Pawn scripting knowledge: 3%

Know the difference...
DanishHaq is offline   Reply With Quote
Old 11/11/2013, 01:01 AM   #6
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,052
Reputation: 205
Default Re: Playin' anim problem

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.
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anim problem joeri55 Help Archive 2 10/11/2010 12:28 PM
Localchat problem with anim joeri55 Help Archive 0 08/11/2010 03:37 AM
Problem with Looping Anim Doktor Help Archive 2 08/11/2009 05:19 PM
Anim problem Byrner Help Archive 17 08/11/2009 05:01 PM
Anim, i need it! AKA_Cross Help Archive 5 19/09/2009 04:33 PM


All times are GMT. The time now is 07:00 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.