Animation doesn't work
#1

The following animation does not appear ...

Код:
ApplyAnimation(playerid,"SMOKING","M_smk_in",4.0,1,1,1,0,20000);
There's no code error...

Greetings,
Bearfist
Reply
#2

You shouldn't set the force sync to 2000.
https://sampwiki.blast.hk/wiki/ApplyAnimation
Reply
#3

I did not add the forcesync-parameter .. the forcesync- parameter is the 10th...

Tell me if i'm wrong

Bearfist
Reply
#4

Do you have:
pawn Код:
PreloadAnimLib(playerid,"BOMBER");
        PreloadAnimLib(playerid,"RAPPING");
        PreloadAnimLib(playerid,"SHOP");
        PreloadAnimLib(playerid,"BEACH");
        PreloadAnimLib(playerid,"SMOKING");
        PreloadAnimLib(playerid,"FOOD");
        PreloadAnimLib(playerid,"ON_LOOKERS");
        PreloadAnimLib(playerid,"DEALER");
        PreloadAnimLib(playerid,"CRACK");
        PreloadAnimLib(playerid,"CARRY");
        PreloadAnimLib(playerid,"COP_AMBIENT");
        PreloadAnimLib(playerid,"PARK");
        PreloadAnimLib(playerid,"INT_HOUSE");
        PreloadAnimLib(playerid,"FOOD" );

stock PreloadAnimLib(playerid,animlib[])
{
    ApplyAnimation(playerid,animlib,"null",0,0,0,0,0,1);
    return 1;
}
?
Reply
#5

Thank you, but it doesn't made a difference

EDIT: The Animations work if I enter the Commands, which play this animations, twice.
But it does not play the animations, if I add the applyanimation-function directly behind the other
Reply
#6

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
Do you have:
pawn Код:
PreloadAnimLib(playerid,"BOMBER");
        PreloadAnimLib(playerid,"RAPPING");
        PreloadAnimLib(playerid,"SHOP");
        PreloadAnimLib(playerid,"BEACH");
        PreloadAnimLib(playerid,"SMOKING");
        PreloadAnimLib(playerid,"FOOD");
        PreloadAnimLib(playerid,"ON_LOOKERS");
        PreloadAnimLib(playerid,"DEALER");
        PreloadAnimLib(playerid,"CRACK");
        PreloadAnimLib(playerid,"CARRY");
        PreloadAnimLib(playerid,"COP_AMBIENT");
        PreloadAnimLib(playerid,"PARK");
        PreloadAnimLib(playerid,"INT_HOUSE");
        PreloadAnimLib(playerid,"FOOD" );

stock PreloadAnimLib(playerid,animlib[])
{
    ApplyAnimation(playerid,animlib,"null",0,0,0,0,0,1);
    return 1;
}
?

Quote:
Originally Posted by Bearfist
Посмотреть сообщение
Thank you, but it doesn't made a difference

EDIT: The Animations work if I enter the Commands, which play this animations, twice.
But it does not play the animations, if I add the applyanimation-function directly behind the other
Where you put that code?
Reply
#7

at onplayerspawn ...
Reply
#8

Show us your code where you put ApplyAnimation.
Reply
#9

Are you using...

pawn Код:
ClearAnimations(playerid);
before you run another Animation
Reply
#10

no ... do I have to do that after each animation ? .. also if it's no more played ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)