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=225127)



Animations - Unknown123 - 13.02.2011

There is a bug in my animations sctipt, sometimes i have to type the command TWO times to get the animation to work, how to fix?

pawn Код:
dcmd_chairsit(playerid, params[])
{
    #pragma unused params
    ApplyAnimation(playerid, "FOOD", "FF_Sit_Look", 3.1, 1,0,0,0,0);
    return 1;
}



Re: Animations - Stigg - 13.02.2011

Quote:
Originally Posted by Unknown123
Посмотреть сообщение
There is a bug in my animations sctipt, sometimes i have to type the command TWO times to get the animation to work, how to fix?

pawn Код:
dcmd_chairsit(playerid, params[])
{
    #pragma unused params
    ApplyAnimation(playerid, "FOOD", "FF_Sit_Look", 3.1, 1,0,0,0,0);
    return 1;
}
public OnPlayerConnect(playerid)
{
PreloadAnimLib(playerid,"FOOD");
return 1;
}

Peace...


Re: Animations - Unknown123 - 13.02.2011

PreloadAnimLib is not a function?


Re: Animations - Stigg - 13.02.2011

Quote:
Originally Posted by Unknown123
Посмотреть сообщение
PreloadAnimLib is not a function?
Put at bottom of your script:

PreloadAnimLib(playerid, animlib[])
{
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0 ,0);
}

Peace...


Re: Animations - Unknown123 - 13.02.2011

1. i have more that 1 Anim
2. It chras my server.

pawn Код:
PreloadAnimLib(playerid,"PAULNMAC");
    PreloadAnimLib(playerid,"COP_AMBIENT");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    PreloadAnimLib(playerid,"PED");
    PreloadAnimLib(playerid,"PAPPING");
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"SWEET");
    PreloadAnimLib(playerid,"BOMBER");
EDIT: Problem SOLVED

I typed
pawn Код:
PreloadAnimLib(playerid,"PAPPING");
Instead of
pawn Код:
PreloadAnimLib(playerid,"RAPPING");