Animations
#1

Hi all , can you please tell me what is the problem here
In cmd :
pawn Code:
if(strcmp(cmd, "/carjacked2", true) == 0)
{
    LoopingAnim(playerid,"PED","CAR_jackedRHS",4.0,0,1,1,1,0);
    Usinganim[playerid] = 1;
    return 1;
}
stock
pawn Code:
stock ApplyAnimationEx(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
    return ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
}
problem : When player uses it , only he doesn't see it , others do

Thanks

PS. the problem shouldn't be in "Usinganim[playerid] = 1;"
Reply
#2

I think it's just a sync issue.
Reply
#3

https://sampwiki.blast.hk/wiki/ApplyAnimation

You could try to use forcesync (add a 1 at the end of the arguments)

EDIT: LoopingAnim(playerid,"PED","CAR_jackedRHS",4.0,0,1 ,1,1,0,1); //like this
Reply
#4

i added ,1 on the end , it works now , but it shows warning about number of arguments ... what should i do :/
pawn Code:
stock ApplyAnimationEx(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
    return ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp, 1);
}
edit :
not working, none of these 2
pawn Code:
LoopingAnim(playerid,"PED","CAR_jackedRHS",4.0,0,1 ,1,1,0,1); //like this
LoopingAnim(playerid,"PED","CAR_jackedRHS",4.0,0,1 ,1,1,1); //like this
FIX :

I replaced LoopingAnim with ApplyAnimation
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)