Question about animations
#1

I have a command:

pawn Код:
CMD:callvehicle( playerid, params[] )
{
    new
        vSlot,
        Float:p [ 3 ];
       
    if( sscanf( params, "i", vSlot ) )
        return SendClientMessage( playerid, c_HEADER, "USAGE: "#WHITE"/callvehicle [ vehicle slot ]" );
       
    if( accInfo [ playerid ] [ AlchemySkill ] < 3 )
        return NOAUTH;
       
    GetPlayerPos( playerid, p [ 0 ], p [ 1 ], p [ 2 ] );
       
    TogglePlayerControllable( playerid, false );
    p_SpawnedParticle [ playerid ] = CreateObject( 18682, p [ 0 ] + 5.0, p [ 1 ], p [ 2 ] + 1.50, 0.0, 0.0, 0.0 );
    SetTimerEx( "DestroyParticle", 5000, false, "ii", playerid, vSlot );

    ApplyAnimation( playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 1, 1, 1, 1, -1, 1 );
    ApplyAnimation( playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 1, 1, 1, 1, -1, 1 );
    return true;
}
What's wrong with this that's causing the animation not to show? (I even applied the animation twice, as I heard you don't have to preload them that way)
Reply
#2

Does it work when typing the command twice?
Reply
#3

Oddly enough, it's working now... *shrug* Thanks anyways.
Reply
#4

Quote:
Originally Posted by 2KY
Посмотреть сообщение
Oddly enough, it's working now... *shrug* Thanks anyways.
gotta love it when that happens!

lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)