[ajuda] erro!
#1

Erros
pawn Код:
C:\Documents and Settings\Don_SpeeD\Desktop\BVC\gamemodes\BVC1.0.pwn(8427) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Don_SpeeD\Desktop\BVC\gamemodes\BVC1.0.pwn(8427) : warning 215: expression has no effect
C:\Documents and Settings\Don_SpeeD\Desktop\BVC\gamemodes\BVC1.0.pwn(8427) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Don_SpeeD\Desktop\BVC\gamemodes\BVC1.0.pwn(8427) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Don_SpeeD\Desktop\BVC\gamemodes\BVC1.0.pwn(8427) : fatal error 107: too many error messages on one line
Linha
pawn Код:
StripNewLine(LineFromFile);
Funзao
pawn Код:
stock FixHouses()
{
    new file[100], File:PFile, Name[24], LineFromFile[100], ParameterName[50], ParameterValue[50];
    new bool:PlayerOwnedTheHouse = true, HousesFixed;
    for (new HouseID = 1; HouseID < MAX_HOUSES; HouseID++)
    {
        if (AHouseData[HouseID][Owned] == true)
        {
            format(Name, 24, AHouseData[HouseID][Owner]);
            format(file, sizeof(file), PlayerFile, Name);
            if (fexist(file))
            {
                PFile = fopen(file, io_read);
                fread(PFile, LineFromFile);
                while (strlen(LineFromFile) > 0)
                {
                    StripNewLine(LineFromFile);//linhaerro
                    sscanf(LineFromFile, "s[50]s[50]", ParameterName, ParameterValue);
                    if (strcmp(ParameterName, "House", false) == 0)
                    {
                        if (strval(ParameterValue) == HouseID)
                            PlayerOwnedTheHouse = true;
                    }
                    fread(PFile, LineFromFile);
                }
                fclose(PFile);
                if (PlayerOwnedTheHouse == false)
                {
                    AHouseData[HouseID][Owned] = false;
                    AHouseData[HouseID][Owner] = 0;
                    AHouseData[HouseID][HouseName] = 0;
                    AHouseData[HouseID][HouseLevel] = 1;
                    House_UpdateEntrance(HouseID);
                    HouseFile_Save(HouseID);
                    HousesFixed++;
                }
                PlayerOwnedTheHouse = false;
            }
        }
    }
    printf(TXT_HousesFixed, HousesFixed);
}
Reply
#2

posta com o nъmero da linha tbm ¬¬
Reply
#3

Код:
StripNewLine(LineFromFile);//linhaerro
¬¬
Reply
#4

falta um
pawn Код:
;
no final.
na funзгo antes da Linha StipNewLine,ou seja,na linha: 8426.
Reply
#5

@edit ; Mas Ja Tem!
Reply
#6

Estranho nao vejo nenhum erro..
Reply
#7

eu tbm nao vi nada de errado, tenta ver se й em outra linha pq algumas vezes o error й em uma linha e mostra em outra
Reply
#8

Bom Todos Sao Assim
pawn Код:
StripNewLine(LineFromFile);
a Variavel Global Assim
pawn Код:
new StripNewLine;
Reply
#9

Cria uma forward embaixo, forward StripNewLine(LineFromFile);
Reply
#10

Quote:
Originally Posted by kinhobryant
Посмотреть сообщение
Cria uma forward embaixo, forward StripNewLine(LineFromFile);
Nao , Testei e Deu Erro.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)