[Ajuda] Error 029 na compilaзгo do GM
#1

Olб! Estou tentando ajeitar um GM de RPG para meus server, porйm estou encontrando esta irritante pedra no meu sapato que tem me atrasado bastante! Por favor, alguйm me dк uma luuuz!!!!
pawn Код:
D:\SS\gamemodes\Dten03e.pwn(2115) : error 029: invalid expression, assumed zero
D:\SS\gamemodes\Dten03e.pwn(2115) : error 029: invalid expression, assumed zero
D:\SS\gamemodes\Dten03e.pwn(2115) : error 029: invalid expression, assumed zero
D:\SS\gamemodes\Dten03e.pwn(2115) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
public OnGameModeInit()
{
    MapAndreas_Init[MAP_ANDREAS_MODE_FULL]);

    if(!fexist("Conce/setados.txt"))
    {
        new File:fhnd = fopen("Conce/setados.txt", io_append);
        fclose(fhnd);
    }

    if(!fexist(SpawnPosFile))
    {
Reply
#2

Osh, vc abriu uma if ali, nгo fechou e nem deu return na public, percebeu ?
Reply
#3

Quote:
Originally Posted by Mr_Taxi
Посмотреть сообщение
Osh, vc abriu uma if ali, nгo fechou e nem deu return na public, percebeu ?
Sou bem leigo nisso! Pode mandar certo pra mim, por favor?
Reply
#4

pawn Код:
public OnGameModeInit()
{ // Aqui vc abriu a chave da public.
    MapAndreas_Init[MAP_ANDREAS_MODE_FULL]);

    if(!fexist("Conce/setados.txt"))
    {
        new File:fhnd = fopen("Conce/setados.txt", io_append);
        fclose(fhnd);
    }

    if(!fexist(SpawnPosFile))
    {
        // Aqui ta faltando alguma coisa, veja no cуdigo que vc estб editando/copiando o que era, e coloque...
    } // Vc esqueceu de fechar aqui у
return true;
} // Vc abriu a chave principal da public, e deve fecha-la.
}
Reply
#5

Mr Taxi, me passa seu contato por PM pra vc me ajudar nisso... Tб foda ja agradeci... Serei muito grato a vc se ajudar nisso!!!
pawn Код:
public OnGameModeInit()
{
    MapAndreas_Init[MAP_ANDREAS_MODE_FULL]);

    if(!fexist("Conce/setados.txt"))
    {
        new File:fhnd = fopen("Conce/setados.txt", io_append);
        fclose(fhnd);
    }

    if(!fexist(SpawnPosFile))
    {
        new File:fhnd = fopen(SpawnPosFile, io_append);
        fclose(fhnd);
    }
return true;
}
Ajeitei mas os erros continuaram...
pawn Код:
D:\SS\gamemodes\Dten03e.pwn(2115) : error 029: invalid expression, assumed zero
D:\SS\gamemodes\Dten03e.pwn(2115) : error 029: invalid expression, assumed zero
D:\SS\gamemodes\Dten03e.pwn(2115) : error 029: invalid expression, assumed zero
D:\SS\gamemodes\Dten03e.pwn(2115) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply
#6

Mano, eu nгo uso MSN, Raidcall nem nada, qnd tф no PC fico aqui no Forum e no Face... posta suas duvidas aqui que se eu nгo conseguir / O que provavelmente nгo irei pois sou noob, os amigos mais experientes conseguem
Reply
#7

Ql a linha 2115 ?
Reply
#8

Quote:
Originally Posted by Mr_Taxi
Посмотреть сообщение
Ql a linha 2115 ?
pawn Код:
MapAndreas_Init[MAP_ANDREAS_MODE_FULL]);
Reply
#9

Falta de atenзгo

Troque a linha MapAndreas_Init[MAP_ANDREAS_MODE_FULL]);
por йssa o erro acontece na funзгo por ter [] e faltar um (

Numca se esqueзa abriu ( fechou )
abriu { fechou }
pawn Код:
MapAndreas_Init(MAP_ANDREAS_MODE_FULL);
Reply
#10

Quote:
Originally Posted by Schocc
Посмотреть сообщение
Falta de atenзгo

Troque a linha MapAndreas_Init[MAP_ANDREAS_MODE_FULL]);
por йssa

pawn Код:
MapAndreas_Init(MAP_ANDREAS_MODE_FULL);
Troquei e deu isso
pawn Код:
D:\SS\gamemodes\Dten03e.pwn(2115) : error 029: invalid expression, assumed zero
D:\SS\gamemodes\Dten03e.pwn(2115) : error 001: expected token: ")", but found ";"
D:\SS\gamemodes\Dten03e.pwn(2115 -- 2117) : warning 215: expression has no effect
D:\SS\gamemodes\Dten03e.pwn(2117) : error 001: expected token: ";", but found "if"
D:\SS\gamemodes\Dten03e.pwn(2117) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)