Loose Indentation
#8

Try this one:

PHP код:
if((IsACBUGWeapon(playerid) && RELEASED(KEY_FIRE)) && newkeys != KEY_FIRE && newkeys KEY_CROUCH)
{
    
ApplyAnimation playerid "PED" "getup" 4.1 ) ;
    
SCM(playerid,COLOR_WHITE,"{AA3333}Pe serverul nostru este interzis c-bug, risti ban 3 zile.");
}
if ((
newkeys==KEY_CTRL_BACK )&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerSta te(playerid)==PLAYER_STATE_DRIVER))
{
    
ShowPlayerDialog(playeridDialog_radioDIALOG_STYLE_LIST"Car music:","{ff0000}Turn OFF\n{ffffff}Pro FM\nRadio Bandit\nRadio Taraf\nRadio ZU[Audio Plugin]\nKiss FM[Audio Plugin]\nRadio Hot Style\nRadio Gangsta Dance\nRadio Gangsta Manele\nRadio Romanian Hip-Hop\nRadio Romanian Manele\nRadio Romanian Popular\nRadio GMusic Rock\nEuropa FM\nRadio Always\nDubstep FM\nTrap FM\n Radio Tequila","Ok","Cancel");
}
if (
newkeys KEY_NO)
{
    if(
SwitchKey[playerid] == 1)
    {
        new 
string[128];
        for(new 
vPlayerInfo[playerid][pCarSlots]; v++)
        {
            if(
CheckPlayerDistanceToVehicle(5.0playeridPlayerInfo[playerid][pCarID][v]))
            {
                if(
PlayerInfo[playerid][pCarLock][v] == 1)
                {
                    
GetVehicleParamsEx(PlayerInfo[playerid][pCarID][v],engine,lights,alarm,doors,bonnet,boot,objective);
                    
SetVehicleParamsEx(PlayerInfo[playerid][pCarID][v],engine,lights,alarm,0,bonnet,boot,objective);
                    
format(stringsizeof(string), "~h~%s~n~~g~Unlocked",aVehicleNames[PlayerInfo[playerid][pCarModel][v] - 400]);
                    
GameTextForPlayer(playeridstring50003);
                    
PlayerPlaySound(playerid11450.00.00.0);
                    
PlayerInfo[playerid][pCarLock][v] = 0;
                    
gCarLock[PlayerInfo[playerid][pCarID][v]] = 0;
                    
cUpdate(playeridvcLockx);
                    return 
1;
                }
                else
                {
                    
GetVehicleParamsEx(PlayerInfo[playerid][pCarID][v],engine,lights,alarm,doors,bonnet,boot,objective);
                    
SetVehicleParamsEx(PlayerInfo[playerid][pCarID][v],engine,lights,alarm,1,bonnet,boot,objective);
                    
SetVehicleParamsForPlayer(PlayerInfo[playerid][pCarID][v],playerid,0,0);
                    
format(stringsizeof(string), "~h~%s~n~~r~Locked",aVehicleNames[PlayerInfo[playerid][pCarModel][v] - 400]);
                    
GameTextForPlayer(playeridstring50003);
                    
PlayerPlaySound(playerid11450.00.00.0);
                    
PlayerInfo[playerid][pCarLock][v] = 1;
                    
gCarLock[PlayerInfo[playerid][pCarID][v]] = 1;
                    
cUpdate(playeridvcLockx);
                    return 
1;
                }
            }
        }
        return 
1;
    }
    else if(
SwitchKey[playerid] == 2)
    {
        new 
carid,string[128];
        if(
HireCar[playerid] == -1) return 1;
        if(
HireCar[playerid] != -1)
        {
            
carid HireCar[playerid];
        }
        if(
CheckPlayerDistanceToVehicle(5.0playeridHireCar[playerid]))
        {
            if(
gCarLock[carid] == 0)
            {
                new 
vehicles GetVehicleModel(carid) - 400;
                
format(stringsizeof(string), "~h~%s~n~~r~Locked"aVehicleNames[vehicles]);
                
GameTextForPlayer(playeridstring40004);
                
PlayerPlaySound(playerid11450.00.00.0);
                
gCarLock[carid] = 1;
                
GetVehicleParamsEx(HireCar[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
                
SetVehicleParamsEx(HireCar[playerid],engine,lights,alarm,1,bonnet,boot,objective);
                return 
1;
            }
            else if(
gCarLock[carid] == 1)
            {
                new 
vehicles GetVehicleModel(carid) - 400;
                
format(stringsizeof(string), "~h~%s~n~~g~Unlocked"aVehicleNames[vehicles]);
                
GameTextForPlayer(playeridstring40004);
                
PlayerPlaySound(playerid11450.00.00.0);
                
gCarLock[carid] = 0;
                
GetVehicleParamsEx(HireCar[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
                
SetVehicleParamsEx(HireCar[playerid],engine,lights,alarm,0,bonnet,boot,objective);
                return 
1;
            }
        }
    }
}
if (
newkeys KEY_HANDBRAKE)
{
    if(
GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK && PlayerInfo[playerid][pAdmin] < 1)
    {
        new 
string[256];
        
format(stringsizeof(string), "(N) %s (%d, level %d) created a jetpack.",GetName(playerid),playerid,PlayerInfo[playerid][pLevel]);
        
ABroadCast(COLOR_RED,string,1);
    }
}
if (
newkeys KEY_CROUCH)
{
    if(
PlayerToPoint(10.0playerid,907.50238, -1666.5881313.50640))
    {
        if(
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pHelper] >= 1)
        {
            
MoveObject(gatehqa907.46240, -1666.5881313.406402, -0.04000, -2.32000, -90.00000);
            
//MoveObject(gatehqa,1596.7352,-1637.9025, 15.0358, 2 , 0.00000, 0.00000, -90.84000);
            
SetTimer("gateadminclose" ,5000 ,false);
        }
    }
    if(
IsACop(playerid))
    {
        
    }
    if(
IsACop(playerid))
    {
        if(
PlayerToPoint(15.0playerid,1588.6552, -1637.902515.035)
        {
            
MoveObject(gatelspd,1592.65674, -1638.052869.89110,2, -1000.0, -1000.0, -1000.0);
            
SetTimer("lspdgateclose" ,9000 ,false);
            return 
1;
        }
        if(
PlayerToPoint(15.0playerid,2334.89990002444.39990008.3000000))
        {
            
MoveDynamicObject(gatelvpd,2339.30000002450.50000008.3000000,2, -1000.0, -1000.0, -1000.0);
            
SetTimer("lvpdgateclose" ,9000 ,false);
            return 
1;
        }
        if(
PlayerToPoint(15.0playerid,2295.30000002507.00000005.7000000))
        {
            
MoveDynamicObject(gatelvpd2,2295.30000002507.00000005.7000000,2, -1000.0, -1000.0, -1000.0);
            
SetTimer("lvpdgateclose2" ,9000 ,false);
            return 
1;
        }
        if(
PlayerToPoint(15.0playerid,135.28331941.333121.6932))
        {
            
MoveDynamicObject(gateng,122.00231941.410021.6932,2, -1000.0, -1000.0, -1000.0);
            
SetTimer("nggateclose" ,9000 ,false);
            return 
1;
        }
        if(
PlayerToPoint(15.0playerid,1544.7007, -1630.752713.2983))
        {
            
MoveDynamicObject(lspdbar,1544.7007, -1630.752713.2983,1,0.00000.000090.0000);
            
SetTimer("lspdbarclose" ,9000 ,false);
            return 
1;
        }
        if(
PlayerToPoint(15.0playerid,2238.220212450.4431210.58781))
        {
            
MoveDynamicObject(lvpdbar,2238.220212450.4431210.58781,1,0.00000.000090.0000);
            
SetTimer("lvpdbarclose" ,9000 ,false);
            return 
1;
        }
    }
    if(
PlayerInfo[playerid][pPhousekey] == 102 || PlayerInfo[playerid][pPhousekey] == 199 || PlayerInfo[playerid][pPhousekey] == 198 || PlayerInfo[playerid][pPhousekey] == 197)
    {
        if(
PlayerToPoint(15.0playerid,-55.95193, -2111.299563.48741))
        {
            
MoveObject(palatbar1, -55.95193, -2111.299563.4874110.00000.0000090.0000);
            
SetTimer("palatbar1close" ,9000 ,false);
            return 
1;
        }
    }
}
if (((
newkeys KEY_WALK && newkeys KEY_UP) || (newkeys KEY_WALK && newkeys KEY_DOWN) || (newkeys KEY_WALK && newkeys KEY_LEFT) || (newkeys KEY_WALK && newkeys KEY_RIGHT))
    || ((
oldkeys KEY_WALK && newkeys KEY_UP) || (oldkeys KEY_WALK && newkeys KEY_DOWN) || (oldkeys KEY_WALK && newkeys KEY_LEFT) || (oldkeys KEY_WALK && newkeys KEY_RIGHT))
|| ((
newkeys KEY_WALK && oldkeys KEY_UP) || (newkeys KEY_WALK && oldkeys KEY_DOWN) || (newkeys KEY_WALK && oldkeys KEY_LEFT) || (newkeys KEY_WALK && oldkeys KEY_RIGHT))
&& 
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
    
walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid);

i suggest to you to use Indenter to avoid loose indentation warnings.
Reply


Messages In This Thread
Loose Indentation - by Arcada23 - 20.05.2017, 15:58
Re: Loose Indentation - by AbyssMorgan - 20.05.2017, 15:59
Re: Loose Indentation - by Arcada23 - 20.05.2017, 16:10
Re: Loose Indentation - by Saddin - 20.05.2017, 16:12
Re: Loose Indentation - by Burridge - 20.05.2017, 16:47
Re: Loose Indentation - by Saddin - 20.05.2017, 16:52
Re: Loose Indentation - by Sew_Sumi - 20.05.2017, 19:32
Re: Loose Indentation - by RxErT - 20.05.2017, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)