SA-MP Forums Archive
Animations - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Animations (/showthread.php?tid=183987)



Animations - Ivan_Pantovic - 17.10.2010

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;"


Re: Animations - Scenario - 17.10.2010

I think it's just a sync issue.


Re: Animations - Mauzen - 17.10.2010

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


Re: Animations - Ivan_Pantovic - 17.10.2010

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