[Ajuda] Comando de deletar casa, nao funciona!
#1

Alguйm me ajuda ? eu uso o PCC_truking mais o meu comando de /deletarempresa nгo funciona =/
e queria um comando /deletarcasa que nгo tem no game mode =/

/deletarempresa
pawn Код:
/*COMMAND:deletarempresa(playerid, params[])
{
    // Setup local variables
    new file[100], Msg[128];

    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/deletarempresa", params);

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Check if the player's admin-level is at least 5
        if (APlayerData[playerid][PlayerLevel] >= 5)
        {
            // Make sure the player isn't inside a vehicle
            if (GetPlayerVehicleID(playerid) == 0)
            {
                // Loop through all player-owned businesses
                for (new BusID = 1; BusID < MAX_BUSINESS; BusID++)
                {
                    // Check if the business exists
                    if (ABusinessData[BusID][PickupID] != 0)
                    {
                        // Check if the business has no owner
                        if (ABusinessData[BusID][Owned] == false)
                        {
                            // Check if the player is in range of the business-pickup
                            if (IsPlayerInRangeOfPoint(playerid, 2.5, ABusinessData[BusID][BusinessX], ABusinessData[BusID][BusinessY], ABusinessData[BusID][BusinessZ]))
                            {
                                // Clear all data of the business
                                ABusinessData[BusID][BusinessName] = 0;
                                ABusinessData[BusID][BusinessX] = 0.0;
                                ABusinessData[BusID][BusinessY] = 0.0;
                                ABusinessData[BusID][BusinessZ] = 0.0;
                                ABusinessData[BusID][BusinessType] = 0;
                                ABusinessData[BusID][BusinessLevel] = 0;
                                ABusinessData[BusID][LastTransaction] = 0;
                                ABusinessData[BusID][Owned] = false;
                                ABusinessData[BusID][Owner] = 0;
                                // Destroy the mapicon, 3DText and pickup for the house
                                DestroyDynamicPickup(ABusinessData[BusID][PickupID]);
                                DestroyDynamicMapIcon(ABusinessData[BusID][MapIconID]);
                                DestroyDynamic3DTextLabel(ABusinessData[BusID][DoorText]);
                                ABusinessData[BusID][PickupID] = 0;
                                ABusinessData[BusID][MapIconID] = 0;

                                // Delete the business-file
                                format(file, sizeof(file), BusinessFile, BusID); // Construct the complete filename for this business-file
                                if (fexist(file)) // Make sure the file exists
                                    fremove(file); // Delete the file

                                // Also let the player know he deleted the business
                                format(Msg, 128, "{00FF00}Vocк deletou a empresa ID: {FFFF00}%i", BusID);
                                SendClientMessage(playerid, 0xFFFFFFFF, Msg);

                                // Exit the function
                                return 1;
                            }
                        }
                    }
                }

                // There was no house in range, so let the player know about it
                SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Esteja na porta da empresa que deseja deletar.");
            }
            else
                SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Vocк nгo pode deletar uma empresa de dentro de um veнculo.");
        }
        else
            return 0;
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}
Reply
#2

o cуdigo do seu comando esta desativado quando tem essas '//' e a linha esta verde й que o cуdigo esta desativado.
Reply
#3

eu ja tentei mudar mais n quer ficar normal
Reply
#4

Retire a /* do comeзo do cуdigo

pawn Код:
COMMAND:deletarempresa(playerid, params[])
{
    // Setup local variables
    new file[100], Msg[128];

    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/deletarempresa", params);

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Check if the player's admin-level is at least 5
        if (APlayerData[playerid][PlayerLevel] >= 5)
        {
            // Make sure the player isn't inside a vehicle
            if (GetPlayerVehicleID(playerid) == 0)
            {
                // Loop through all player-owned businesses
                for (new BusID = 1; BusID < MAX_BUSINESS; BusID++)
                {
                    // Check if the business exists
                    if (ABusinessData[BusID][PickupID] != 0)
                    {
                        // Check if the business has no owner
                        if (ABusinessData[BusID][Owned] == false)
                        {
                            // Check if the player is in range of the business-pickup
                            if (IsPlayerInRangeOfPoint(playerid, 2.5, ABusinessData[BusID][BusinessX], ABusinessData[BusID][BusinessY], ABusinessData[BusID][BusinessZ]))
                            {
                                // Clear all data of the business
                                ABusinessData[BusID][BusinessName] = 0;
                                ABusinessData[BusID][BusinessX] = 0.0;
                                ABusinessData[BusID][BusinessY] = 0.0;
                                ABusinessData[BusID][BusinessZ] = 0.0;
                                ABusinessData[BusID][BusinessType] = 0;
                                ABusinessData[BusID][BusinessLevel] = 0;
                                ABusinessData[BusID][LastTransaction] = 0;
                                ABusinessData[BusID][Owned] = false;
                                ABusinessData[BusID][Owner] = 0;
                                // Destroy the mapicon, 3DText and pickup for the house
                                DestroyDynamicPickup(ABusinessData[BusID][PickupID]);
                                DestroyDynamicMapIcon(ABusinessData[BusID][MapIconID]);
                                DestroyDynamic3DTextLabel(ABusinessData[BusID][DoorText]);
                                ABusinessData[BusID][PickupID] = 0;
                                ABusinessData[BusID][MapIconID] = 0;

                                // Delete the business-file
                                format(file, sizeof(file), BusinessFile, BusID); // Construct the complete filename for this business-file
                                if (fexist(file)) // Make sure the file exists
                                    fremove(file); // Delete the file

                                // Also let the player know he deleted the business
                                format(Msg, 128, "{00FF00}Vocк deletou a empresa ID: {FFFF00}%i", BusID);
                                SendClientMessage(playerid, 0xFFFFFFFF, Msg);

                                // Exit the function
                                return 1;
                            }
                        }
                    }
                }

                // There was no house in range, so let the player know about it
                SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Esteja na porta da empresa que deseja deletar.");
            }
            else
                SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Vocк nгo pode deletar uma empresa de dentro de um veнculo.");
        }
        else
            return 0;
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}
Reply
#5

quando eu alterei olha oque deu!!!

pawn Код:
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Common.inc(89) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Common.inc(105) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Common.inc(174) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Common.inc(316) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Housing.inc(24) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Housing.inc(76) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Housing.inc(104) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Business.inc(69) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Business.inc(69) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Business.inc(90) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Business.inc(90) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Business.inc(105) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Business.inc(106) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_FileOperations.inc(834) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Speedometer.inc(24) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Speedometer.inc(155) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsTrucking.inc(230) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsBus.inc(74) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsPolice.inc(38) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsPolice.inc(299) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsMafia.inc(199) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsAssistance.inc(36) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsCourier.inc(112) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Convoys.inc(24) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Convoys.inc(41) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(961) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1169) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1393) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1521) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1568) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1584) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1649) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1796) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1796) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1851) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1851) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1960) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1961) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(2052) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(2137) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(2410) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(2438) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(2498) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(2644) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(320) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(357) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(394) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(482) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(516) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(609) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(648) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(760) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(892) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(916) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1432) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1533) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1582) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1623) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1647) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1672) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1707) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1742) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1967) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2049) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2282) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2537) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2593) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2710) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2768) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2864) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2955) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3049) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3068) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3071) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3071) : error 021: symbol already defined: "SendAdminText"
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3072) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3074) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3076) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3078) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3080) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3082) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3085) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3086) : error 021: symbol already defined: "Business_SetOwner"
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3087) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3090) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3095) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3098) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3099) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3103) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3106) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3107) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3108) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3150) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3201) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3232) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3303) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3351) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3427) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3474) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3511) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3540) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3572) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3603) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3664) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3699) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3718) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3767) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3831) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3898) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3956) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3983) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(4018) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(4060) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(272) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(299) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(574) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(755) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(845) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(1107) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(1346) : warning 203: symbol is never used: "BusType"
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(1346) : warning 203: symbol is never used: "Business_SetOwner"
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(1346) : warning 203: symbol is never used: "Msg"
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(1346) : warning 203: symbol is never used: "Player_GetFreeBusinessSlot"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


20 Errors.
Reply
#6

Achei isso na net mais eu botei e deu erro:
pawn Код:
COMMAND:deletarempresa(playerid, params[])
{
    // Setup local variables
    new file[100], Msg[128];

    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/deletarempresa", params);

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Check if the player's admin-level is at least 5
        if (APlayerData[playerid][PlayerLevel] >= 5)
        {
            // Make sure the player isn't inside a vehicle
            if (GetPlayerVehicleID(playerid) == 0)
            {
                // Loop through all player-owned businesses
                for (new BusID = 1; BusID < MAX_BUSINESS; BusID++)
                {
                    // Check if the business exists
                    if (ABusinessData[BusID][PickupID] != 0)
                    {
                        // Check if the business has no owner
                        if (ABusinessData[BusID][Owned] == false)
                        {
                            // Check if the player is in range of the business-pickup
                            if (IsPlayerInRangeOfPoint(playerid, 2.5, ABusinessData[BusID][BusinessX], ABusinessData[BusID][BusinessY], ABusinessData[BusID][BusinessZ]))
                            {
                                // Clear all data of the business
                                ABusinessData[BusID][BusinessName] = 0;
                                ABusinessData[BusID][BusinessX] = 0.0;
                                ABusinessData[BusID][BusinessY] = 0.0;
                                ABusinessData[BusID][BusinessZ] = 0.0;
                                ABusinessData[BusID][BusinessType] = 0;
                                ABusinessData[BusID][BusinessLevel] = 0;
                                ABusinessData[BusID][LastTransaction] = 0;
                                ABusinessData[BusID][Owned] = false;
                                ABusinessData[BusID][Owner] = 0;
                                // Destroy the mapicon, 3DText and pickup for the house
                                DestroyDynamicPickup(ABusinessData[BusID][PickupID]);
                                DestroyDynamicMapIcon(ABusinessData[BusID][MapIconID]);
                                DestroyDynamic3DTextLabel(ABusinessData[BusID][DoorText]);
                                ABusinessData[BusID][PickupID] = 0;
                                ABusinessData[BusID][MapIconID] = 0;

                                // Delete the business-file
                                format(file, sizeof(file), BusinessFile, BusID); // Construct the complete filename for this business-file
                                if (fexist(file)) // Make sure the file exists
                                    fremove(file); // Delete the file

                                // Also let the player know he deleted the business
                                format(Msg, 128, "{00FF00}Vocк Deletou a Empresa ID: {FFFF00}%i", BusID);
                                SendClientMessage(playerid, 0xFFFFFFFF, Msg);

                                // Exit the function
                                return 1;
                            }
                        }
                    }
                }

                // There was no house in range, so let the player know about it
                SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nenhuma empresa para apagar");
            }
            else
                SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Vocк Nгo Pode Deletar empresa de dentro de um veiculo!");
        }
        else
            return 0;
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}
Erro:
pawn Код:
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Common.inc(89) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Common.inc(105) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Common.inc(174) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Common.inc(316) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Housing.inc(24) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Housing.inc(76) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Housing.inc(104) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Business.inc(69) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Business.inc(69) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Business.inc(90) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Business.inc(90) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Business.inc(105) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Business.inc(106) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_FileOperations.inc(834) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Speedometer.inc(24) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Speedometer.inc(155) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsTrucking.inc(230) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsBus.inc(74) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsPolice.inc(38) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsPolice.inc(299) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsMafia.inc(199) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsAssistance.inc(36) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_MissionsCourier.inc(112) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Convoys.inc(24) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Convoys.inc(41) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(961) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1169) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1393) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1521) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1568) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1584) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1649) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1796) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1796) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1851) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1851) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1960) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(1961) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(2052) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(2137) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(2410) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(2438) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(2498) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_Dialogs.inc(2644) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(320) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(357) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(394) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(482) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(516) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(554) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(635) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(674) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(786) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(918) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(942) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1458) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1559) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1608) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1649) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1673) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1698) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1733) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1768) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(1993) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2075) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2308) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2563) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2619) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2736) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2794) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2890) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(2980) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3074) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3093) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3096) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3096) : error 021: symbol already defined: "SendAdminText"
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3097) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3099) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3101) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3103) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3105) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3107) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3110) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3111) : error 021: symbol already defined: "Business_SetOwner"
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3112) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3115) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3120) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3123) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3124) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3128) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3131) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3132) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3133) : error 010: invalid function or declaration
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3175) : warning 219: local variable "BusType" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3226) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3257) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3328) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3376) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3452) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3499) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3536) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3565) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3597) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3628) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3689) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3724) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3743) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3792) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3856) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3923) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(3981) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(4008) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(4043) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\pawno\include\PPC_PlayerCommands.inc(4085) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(272) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(299) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(574) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(755) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(845) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(1107) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(1345) : warning 203: symbol is never used: "BusType"
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(1345) : warning 203: symbol is never used: "Business_SetOwner"
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(1345) : warning 203: symbol is never used: "Msg"
C:\Users\cliente\Desktop\Brasil  Auto Estrada\gamemodes\BAE.pwn(1345) : warning 203: symbol is never used: "Player_GetFreeBusinessSlot"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


20 Errors.
Reply
#7

UP ?
Reply
#8

Vocк ja reparou que o new Msg[128]; e global!
Reply
#9

Comandos de deleter casa emprese entre outros criado pelo mesmo que crio o GM aqui.
Reply
#10

jdsfenix, procure por */ perto do cуdigo e retire.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)