Loose Indentation
#1

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(IsACopCar(vehicleid))
        if(PlayerInfo[playerid][pFaction] != 1) return SendClientMessage(playerid,COLOR_YELLOW, "You are not in the LSPD / FBI"); RemovePlayerFromVehicle(playerid);
    return 1;
}
How can i remove the loose indentation warnings in the code above? Thanks
Reply
#2

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(IsACopCar(vehicleid))
    {
        if(PlayerInfo[playerid][pFaction] != 1) return SendClientMessage(playerid,COLOR_YELLOW, "You are not in the LSPD / FBI"); RemovePlayerFromVehicle(playerid);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)