Was ist hier falsch ? Ich erhalte einen warning.
Code
C:\Users\PC-1\Desktop\amp 03\gamemodes\AOF+Admin.pwn(11710) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Code
if (strcmp("/motor", cmd, true, 10) == 0)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1;
new Vehicle = GetPlayerVehicleID(playerid), engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(Vehicle, engine, lights, alarm, doors, bonnet, boot, objective);
GetVehicleParamsEx(Vehicle,engine,lights,alarm,doors,bonnet,boot,objective);
if(Vehicle != INVALID_VEHICLE_ID)
{
if (IsPlayerInVehicle(playerid,Carlist[playerid][Carid]))
{
if(engine == VEHICLE_PARAMS_ON)
{
SetVehicleParamsEx(Vehicle,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~W~Motor ~r~aus!", 2000, 5);
}
else
{
SetVehicleParamsEx(Vehicle,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~W~Motor ~g~an!", 2000, 5);
}
return 1;
}
if(IsACopCar(Vehicle) && (pDaten[playerid][Team] == 5))
{
if(engine == VEHICLE_PARAMS_ON)
{
SetVehicleParamsEx(Vehicle,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~W~Motor ~r~aus!", 2000, 5);
}
else
{
SetVehicleParamsEx(Vehicle,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~W~Motor ~g~an!", 2000, 5);
}
return 1;
}
return SendClientMessage(playerid, 0xFF0000FF, "Sie besitzen keinen Schlüssel für dieses Fahrzeug !");
}
return 1;
}
Alles anzeigen
Zeile 11710 ist bei mir im Script dies