GetAnimationName

GetAnimationName

Description:
Function GetAnimationName get the animation library/name for the index.
Function GetAnimationName was added in 0.3b and will not work in earlier versions!


Parameters:
(index, animlib[], len1, animname[], len2)
int index The animation index, returned by GetPlayerAnimationIndex.
string animlib String variable that stores the animation library.
int len1 Size of the string that stores the animation library.
string animname String variable that stores the animation name.
int len2 Size of the string that stores the animation name.


Return Values:
  • 1 on success.
  • 0 on failure.


Examples:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerAnimationIndex(playerid))
    {
        new animlib[32];
        new animname[32];
        new msg[128];
        GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
        format(msg, 128, "Running anim: %s %s", animlib, animname);
        SendClientMessage(playerid, 0xFFFFFFFF, msg);
    }
    return 1;
}


Related Functions
The following functions may be useful, as they are related to this function in one way or another.