SA-MP Forums Archive
[Help]Unknow Commands - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help]Unknow Commands (/showthread.php?tid=556261)



[Help]Unknow Commands - Desha1 - 10.01.2015

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

why unknow command ?


Re: [Help]Unknow Commands - buburuzu19 - 10.01.2015

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



Re: [Help]Unknow Commands - Desha1 - 10.01.2015

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


Re: [Help]Unknow Commands - Desha1 - 10.01.2015

help please Unknow command


Re: [Help]Unknow Commands - bgedition - 10.01.2015

Try to make anmis, stock!


Re: [Help]Unknow Commands - ATGOggy - 10.01.2015

Is this a filterscript?


Re: [Help]Unknow Commands - HY - 10.01.2015

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;
}



Re: [Help]Unknow Commands - Desha1 - 10.01.2015

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;




Re: [Help]Unknow Commands - HY - 10.01.2015

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;
}



Re: [Help]Unknow Commands - bgedition - 10.01.2015

sorry about that I was confused