[Help]Unknow Commands
#1

Hello Every One
i Have PRoblems Unknow Command
PHP код:
CMD:clearanim(playerid)
{
    
animss(playerid);
    return 
1;

why unknow command ?
Reply
#2

Try:
pawn Код:
CMD:clearanim(playerid, params[])
{
     animss(playerid);
     return 1;
}
Reply
#3

Quote:
Originally Posted by buburuzu19
Посмотреть сообщение
Try:
pawn Код:
CMD:clearanim(playerid, params[])
{
     animss(playerid);
     return 1;
}
still Unknow Command
My Code
PHP код:
forward animss(playerid);
public 
animss(playerid)
{
    for(new 
shg 0shg <= playersshg++)
    {
        
DisablePlayerCheckpoint(shg);
        
SetPVarInt(shg"roped"0);
        
ClearAnimations(shg);
        for(new 
destr3 0destr3 <= ropelengthdestr3++)
        {
            
DestroyObject(r0pes[shg][destr3]);
        }
    }
    return 
1;
}
CMD:clearanim(playeridparams[])
{
     
animss(playerid);
     return 
1;

why unknow command please help me
Reply
#4

help please Unknow command
Reply
#5

Try to make anmis, stock!
Reply
#6

Is this a filterscript?
Reply
#7

pawn Код:
CMD:clearanim(playerid, params[])
{
     ClearAnimations(playerid);
     return 1;
}
This isn't more simple? Or, if you want your chose, then make that a stock, not a public.

pawn Код:
stock 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

i have this error
Quote:

(147) : warning 203: symbol is never used: "playerid"

line 147
PHP код:
stock animss(playerid
full code
PHP код:
stock animss(playerid)
{
    for(new 
shg 0shg <= playersshg++)
    {
        
DisablePlayerCheckpoint(shg);
        
SetPVarInt(shg"roped"0);
        
ClearAnimations(shg);
        for(new 
destr3 0destr3 <= ropelengthdestr3++)
        {
            
DestroyObject(r0pes[shg][destr3]);
        }
    }
    return 
1;

Reply
#9

pawn Код:
stock animss()
{
    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;
}
pawn Код:
CMD:clearanim(playerid, params[])
{
     animss();
     return 1;
}
Reply
#10

sorry about that I was confused
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)