Animations
#1

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;
}
Reply
#2

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...
Reply
#3

PreloadAnimLib is not a function?
Reply
#4

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...
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)