Szerző Téma: Hiba üzenet  (Megtekintve 417 alkalommal)

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
Hiba üzenet
« Dátum: 2013. Május 13. - 20:22:36 »
0 Show voters
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;
}

Hiba üzenet
« Válasz #1 Dátum: 2013. Május 13. - 20:28:51 »
0 Show voters

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

Nem elérhető ZSOLTI99

  • 1827
    • Profil megtekintése
Hiba üzenet
« Válasz #2 Dátum: 2013. Május 13. - 20:33:11 »
0 Show voters
Ja hogy ezeket a sorokat el kell tolni és akkor jó köszönöm

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Hiba üzenet
« Válasz #3 Dátum: 2013. Május 13. - 21:01:54 »
+1 Show voters
#pragma tabsize 0

 
mód elejére..

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal