[Help]Animation
#1

Hello Guys
When im Slide The Animation im bug
cuz when im down its not disable help me please
i can make it Commands To Disable it ?
PHP код:
ApplyAnimation(playerid,"ped","abseil",4.0,0,0,0,1,0); 
help me make it with CMDffslide
to Disable this Animation please +rep
Reply
#2

pawn Код:
CMD:clearanimation(playerid)
{
    ClearAnimations(playerid);
    return 1;
}
or try
pawn Код:
ApplyAnimation(playerid,"ped","abseil",3.0,0,1,1,0,1,1);
Reply
#3

Quote:
Originally Posted by AroseKhanNaizi
Посмотреть сообщение
pawn Код:
CMD:clearanimation(playerid)
{
    ClearAnimations(playerid);
    return 1;
}
or try
pawn Код:
ApplyAnimation(playerid,"ped","abseil",3.0,0,1,1,0,1,1);
its not working
i try /clearanimation
but its clear 1 sec and i back to anim lol
any idea ?
/////
i see this onplayerdeath to the anim disable + object > but have error when im add it in my CMD:clearanim
Quote:

D:\sa\filterscripts\slide.pwn(147) : error 017: undefined symbol "shg"
D:\sa\filterscripts\slide.pwn(14 : error 017: undefined symbol "destr"

PHP код:
CMD:clearanimation(playerid)
{
    
ClearAnimations(playerid,shg);
    
DestroyObject(r0pes[playerid][destr]);
    return 
1;

help please
Reply
#4

Help Please
Reply
#5

stop bumping and
pawn Код:
DestroyObject(r0pes[playerid][destr]);
this got nothing to go with animation as i think and try replacing you ApplyAnimation with the one i gave you can also use the command
Reply
#6

i can made it like this
PHP код:
forward animss(playerid);
public 
animss(playerid)
{
        for(new 
shg=0;shg<=players;shg++)
        {
        
DisablePlayerCheckpoint(shg);
        
SetPVarInt(shg,"roped",0);
        
ClearAnimations(shg);
        for(new 
destr3=0;destr3<=ropelength;destr3++)
        {
        
DestroyObject(r0pes[shg][destr3]);
        }
        return 
1;
}
CMD:clearanim(playerid)
{
    
animss(playerid);
    return 
1;

see here i made it like this
PHP код:
public OnVehicleDeath(vehicleidkillerid)
{
        if(
GetVehicleModel(vehicleid) == chopperid)
        {
            for(new 
shg=0;shg<=players;shg++)
            {
                if(
GetPVarInt(shg,"chop_id") == vehicleid && GetPVarInt(shg,"roped") == 1)
                {
                    
DisablePlayerCheckpoint(shg);
                    
SetPVarInt(shg,"roped",0);
                    
DisablePlayerCheckpoint(shg);
                    
ClearAnimations(shg);
                    
TogglePlayerControllable(shg,1);
                    for(new 
destr3=0;destr3<=ropelength;destr3++)
                                {
                                    
DestroyObject(r0pes[shg][destr3]);
                                }
                        }
                }
        }
        return 
1;

but have this error
Quote:

D:\sa\filterscripts\slide.pwn(159) : warning 217: loose indentation
D:\sa\filterscripts\slide.pwn(159) : error 029: invalid expression, assumed zero
D:\sa\filterscripts\slide.pwn(159) : error 017: undefined symbol "cmd_clearanim"
D:\sa\filterscripts\slide.pwn(159) : error 029: invalid expression, assumed zero
D:\sa\filterscripts\slide.pwn(159) : fatal error 107: too many error messages on one line

Reply
#7

help me in this error
Quote:

error 030: compound statement not closed at the end of file (started at line 14
line 148
PHP код:
for(new shg=0;shg<=players;shg++) 
full code
PHP код:
forward animss(playerid);
public 
animss(playerid)
{
        for(new 
shg=0;shg<=players;shg++)
        {
        
DisablePlayerCheckpoint(shg);
        
SetPVarInt(shg,"roped",0);
        
ClearAnimations(shg);
        for(new 
destr3=0;destr3<=ropelength;destr3++)
        {
        
DestroyObject(r0pes[shg][destr3]);
        }
        return 
1;

Reply
#8

pawn Код:
forward animss(playerid);
public animss(playerid)
{
    for(new shg = 0; shg <= players; shg++)
    {
        DisablePlayerCheckpoint(shg);

        SetPVarInt(shg, "roped", 0);

        ClearAnimations(shg);

        for(new destr3 = 0; destr3 <= ropelength; destr3++)
        {
            DestroyObject(r0pes[shg][destr3]);
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)