Loose Indentation - 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: Loose Indentation (
/showthread.php?tid=322802)
Loose Indentation -
lewismichaelbbc - 03.03.2012
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
Re: Loose Indentation -
Konstantinos - 03.03.2012
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;
}