Error na instalaзгo do comando
#1

Galera me ajudem a tirar esse error:

pawn Код:
C:\Users\Analia\Desktop\Servidor\pawno\include\PPC_PlayerCommands.inc(13) : error 021: symbol already defined: "format"
Linhas Do Error:

pawn Код:
format(Msg, 128, "{00FF00}Voce despejou o dono da Casa de ID: {FFFF00}%i", HouseID);
format(Msg, 128, "{00FF00}Voce despejou o dono da Empresa de ID: {FFFF00}%i", BusID);
format(Msg, 128, "{FF0000}Sua casa {FFFF00}\"%s\"{FF0000} foi deletada", AHouseData[HouseID][HouseName]);
format(file, sizeof(file), HouseFile, HouseID); // Construct the complete filename for this house-file
format(Msg, 128, "{FF0000}Sua Casa {FFFF00}\"%s\"{FF0000} estб sendo despejada", AHouseData[HouseID][HouseName]);
format(Msg, 128, "{FF0000}Sua Empresa {FFFF00}\"%s\"{FF0000} foi deletada", ABusinessData[BusID][BusinessName]);
format(file, sizeof(file), BusinessFile, BusID); // Construct the complete filename for this business-file
format(Msg, 128, "{FF0000}Sua Empresa {FFFF00}\"%s\"{FF0000} estб sendo despejada.", ABusinessData[BusID][BusinessName]);
format(file, sizeof(file), PlayerFile, Name);
format(FileContent[Index], 100, LineFromFile);
format(SearchString, 100, "House %i", HouseID);
format(SearchString, 100, "Business %i", BusID);
format(LineFromFile, 100, "%s\r\n", FileContent[Index]);
Acho que tou quase 1 semana tentando arrumar ele ajudem por favor
Reply
#2

o erro estб na include PPC_PlayerCommands na linha 13.
Reply
#3

Seu comando tб sem sentido.
Reply
#4

Oq tem de errado nessa linha:

pawn Код:
format(file, sizeof(file), BusinessFile, BusID); // Construct the complete filename for this business-file
Ajuda ae por favor.
Reply
#5

Pega o meu:

pawn Код:
CMD:despejar(playerid, params[])
{
    if (GetPlayerVehicleSeat(playerid) != -1) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}[ERRO] {009D4F}Vocк nгo pode usar esta comando dentro de um veнculo");
    if(CallRemoteFunction("PegarLevel","i",playerid) < 5) return SendClientMessage(playerid, -1, "{FF0000}[ERRO]: Vocк nгo tem permissгo para isso!");
    if (APlayerData[playerid][LoggedIn] != true) return SendClientMessage(playerid, -1, "{FFFF00}[ERRO] {009D4F}Vocк nгo estб logado!");
    new Msg[128], Name[24], AdminName[24];
    GetPlayerName(playerid, AdminName, sizeof(AdminName));
    for (new HouseID = 1; HouseID < MAX_HOUSES; HouseID++)
    {
        if (IsValidDynamicPickup(AHouseData[HouseID][PickupID]))
        {
            if (IsPlayerInRangeOfPoint(playerid, 2.5, AHouseData[HouseID][HouseX], AHouseData[HouseID][HouseY], AHouseData[HouseID][HouseZ]))
            {
                if (AHouseData[HouseID][Owned] == true)
                {
                    for (new pid; pid < MAX_PLAYERS; pid++)
                    {
                        GetPlayerName(pid, Name, sizeof(Name));
                        if (strcmp(AHouseData[HouseID][Owner], Name, false) == 0)
                        {
                            format(Msg, 128, "{FF0000}Vocк perdeu sua casa {FFFF00}\"%s\"{FF0000}, foi despejado", AHouseData[HouseID][HouseName]);
                            SendClientMessage(pid, 0xFFFFFFFF, Msg);
                            for (new HouseSlot; HouseSlot < MAX_HOUSESPERPLAYER; HouseSlot++)
                            if (APlayerData[pid][Houses][HouseSlot] == HouseID)
                            APlayerData[pid][Houses][HouseSlot] = 0;
                            break;
                        }
                    }
                }
                format(Msg, 128, "{FF0000}%s despejou a casa %s [ID: %i] do player %s", AdminName, AHouseData[HouseID][HouseName], HouseID, AHouseData[HouseID][Owner]);
                EscreverLog("Despejou.log", Msg);
                House_RemoveVehicles(HouseID);
                AHouseData[HouseID][Owned] = false;
                AHouseData[HouseID][Owner] = 0;
                House_UpdateEntrance(HouseID);
                HouseFile_Save(HouseID);
                format(Msg, 128, "{00FF00}Vocк despejou a casa ID: {FFFF00}%i", HouseID);
                SendClientMessage(playerid, 0xFFFFFFFF, Msg);

                return 1;
            }
        }
    }
    SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}[ERRO] {009D4F}Vocк deve estar emcima da pickup da casa");
    return 1;
}
Reply
#6

Deu 1 error delete

pawn Код:
C:\Users\Analia\Desktop\Servidor\pawno\include\PPC_PlayerCommands.inc(40) : error 017: undefined symbol "EscreverLog"
Reply
#7

Consegui delete vlw + rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)