Is there something wrong in this command?
#1

PHP код:
CMD:fdelete(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= && PlayerInfo[playerid][pGangMod] > || PlayerInfo[playerid][pAdmin] >= 3)
    {
        if(
AdminDuty[playerid] != && PlayerInfo[playerid][pAdmin] < 5)
              return 
SendClientMessage(playerid,COLOR_WHITE"You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
        new 
family;
        if(
sscanf(params"d"family))
            return 
SendClientMessage(playeridCOLOR_WHITE"USAGE: /fdelete [familyid]");
        if(
family || family 10)
        {
            
SendClientMessage(playeridCOLOR_GREY"   Gang Slot can't be below 1 or above 10!");
            return 
1;
        }
        if(
FamilyInfo[family-1][FamilyTaken] != 1)
        {
            
SendClientMessage(playeridCOLOR_GREY"   That Gang Slot isn't taken!");
            return 
1;
        }
//Works until here
        
ClearFamily(family);
        
SaveGangs();
        for(new 
i=0MAX_POINTSi++)
        {
            if(
Points[i][OwnerTeam] == family)
            {
                
Points[i][OwnerTeam] = 0;
            }
        }
    }
    return 
1;

Whenever I use it on a family, it sends the client the unknown command error.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)