Hello. Csináltam 1 olyan sort hogy ne tudjon melóba telézni és warningos lett de nem akarok benne ilyen warningot ha valaki tudna segíteni hálás lennék neki.
D:\\GTA modok\\Mod\\régi\\régi\\pawno\\include\\PPC_PlayerCommands.inc(651) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
COMMAND:gohome(playerid, params[])
{
// Setup local variables
new HouseList[1000];
// Send the command to all admins so they can see it
SendAdminText(playerid, \"/gohome\", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player has a wanted level of less than 3
if (GetPlayerWantedLevel(playerid) < 3)
{
// Check if the player is not jailed
if (APlayerData[playerid][PlayerJailed] == 0)
{
if (APlayerData[playerid][JobStarted] == false)
{
// Check if the player is not inside a vehicle
if (GetPlayerVehicleID(playerid) == 0)
{
// Ask to which house the player wants to add his vehicle
for (new i; i < MAX_HOUSESPERPLAYER; i++)
{
// Check if this houseindex is occupied
if (APlayerData[playerid][Houses] != 0)
format(HouseList, 1000, \"%s{00FF00}%s{FFFFFF}\\n\", HouseList, AHouseData[APlayerData[playerid][Houses]][HouseName]);
else
format(HouseList, 1000, \"%s{FFFFFF}%s{FFFFFF}\\n\", HouseList, \"Üres ház hely\");
}
ShowPlayerDialog(playerid, DialogGoHome, DIALOG_STYLE_LIST, \"Válazd ki a házad:\", HouseList, \"Oké\", \"Vissza\");
}
else
SendClientMessage(playerid, 0xFF0000FF, \"Nincsen házad...\");
}
else
SendClientMessage(playerid, 0xFF0000FF, \"Nem tudod használni a /hazam mert a börtönben vagy\");
}
else
SendClientMessage(playerid, 0xFF0000FF, \"Nem tudod használni a /gohome-t mert munkában vagy...\");
}
else
SendClientMessage(playerid, 0xFFFFFFFF, \"{FF0000}Nem tudod használni a /hazam mikor körözésed van\");
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}
COMMAND:gohome(playerid, params[])
{
// Setup local variables
new HouseList[1000];
// Send the command to all admins so they can see it
SendAdminText(playerid, \"/gohome\", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player has a wanted level of less than 3
if (GetPlayerWantedLevel(playerid) < 3)
{
// Check if the player is not jailed
if (APlayerData[playerid][PlayerJailed] == 0)
{
if (APlayerData[playerid][JobStarted] == false)
{
// Check if the player is not inside a vehicle
if (GetPlayerVehicleID(playerid) == 0)
{
// Ask to which house the player wants to add his vehicle
for (new i; i < MAX_HOUSESPERPLAYER; i++)
{
// Check if this houseindex is occupied
if (APlayerData[playerid][Houses] != 0)
format(HouseList, 1000, \"%s{00FF00}%s{FFFFFF}\\n\", HouseList, AHouseData[APlayerData[playerid][Houses]][HouseName]);
else
format(HouseList, 1000, \"%s{FFFFFF}%s{FFFFFF}\\n\", HouseList, \"Üres ház hely\");
}
ShowPlayerDialog(playerid, DialogGoHome, DIALOG_STYLE_LIST, \"Válazd ki a házad:\", HouseList, \"Oké\", \"Vissza\");
}
else
SendClientMessage(playerid, 0xFF0000FF, \"Nincsen házad...\");
}
else
SendClientMessage(playerid, 0xFF0000FF, \"Nem tudod használni a /hazam mert a börtönben vagy\");
}
else
SendClientMessage(playerid, 0xFF0000FF, \"Nem tudod használni a /gohome-t mert munkában vagy...\");
}
else
SendClientMessage(playerid, 0xFFFFFFFF, \"{FF0000}Nem tudod használni a /hazam mikor körözésed van\");
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}
nézd meg ezt