(772) : warning 217: loose indentation
#1

{
DestroyVehicle(Veh[playerid][VehId]);
(772) new Float:a;
GetPlayerFacingAngle(playerid, a);
GetPlayerPos(playerid, x, y, z);

if(IsPlayerInAnyVehicle(playerid) == 1)
{
GetXYInFrontOfPlayer(playerid, x, y, 8);
}
else
{
GetXYInFrontOfPlayer(playerid, x, y, 5);
}

new PlayersVehicle = CreateVehicle(vehicle, x, y, z, a+90, -1, -1, -1);
Veh[playerid][VehId] = PlayersVehicle;
LinkVehicleToInterior(PlayersVehicle, GetPlayerInterior(playerid));
}
format(String, sizeof(String), "Ai spawnat %s", aVehicleNames[vehicle - 400]);
SendClientMessage(playerid,portocaliu, String);
return 1;
}
return 0;
}
Reply
#2

Please use code tags to make your code more read-able.
Also, this isn't an error but an indentation warning.

Correct indentation:
PHP Code:
Function(playerid)
{
    
//do something
    
return 1;

Incorrect indentation:
PHP Code:
Function(playerid)
   {
      
//do something
  
return 1;
 } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)