The anim not play
#3

More easier way of preloading anims

PHP код:
// Somewhere in your script
static const AnimLibs[][] =
{
    
"BOMBER""RAPPING""SHOP""BEACH""SMOKING""FOOD""ON_LOOKERS",
    
"DEALER""CRACK""CARRY""COP_AMBIENT""PARK""INT_HOUSE""FOOD",
    
"DANCING""ped""TEC""CASINO""VENDING""HEIST9""PARACHUTE",
    
"GYMNASIUM""MISC""SWORD""CHAINSAW"
};
PreloadAnimLibFor(id)
{
    for(new 
0len sizeof(AnimLibs); leni++)
    {
        
ApplyAnimation(idAnimLibs[i], "null"0.0000000);
    }
}
// OnPlayerConnect
PreloadAnimLibFor(playerid); 
Probably better than his way, you'll be using way less lines if you want to preload more animations.
Reply


Messages In This Thread
The anim not play - by Sn4ke2 - 04.09.2015, 06:34
Re: The anim not play - by bgedition - 04.09.2015, 08:10
Re: The anim not play - by itsCody - 04.09.2015, 09:32

Forum Jump:


Users browsing this thread: 1 Guest(s)