SA-MP Forums Archive
[Ajuda] Erro ao Compilar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erro ao Compilar (/showthread.php?tid=390487)



Erro ao Compilar - Yuri_xD - 06.11.2012

Seguintes erros base euro

Quote:

C:\Users\Yuri\Desktop\GM\Euro RPG\gamemodes\EuroRPG.pwn(223) : error 020: invalid symbol name ""
C:\Users\Yuri\Desktop\GM\Euro RPG\gamemodes\EuroRPG.pwn(74 : error 017: undefined symbol "LoadBancoDasOrgs"
C:\Users\Yuri\Desktop\GM\Euro RPG\gamemodes\EuroRPG.pwn(823) : error 029: invalid expression, assumed zero
C:\Users\Yuri\Desktop\GM\Euro RPG\gamemodes\EuroRPG.pwn(823) : error 029: invalid expression, assumed zero
C:\Users\Yuri\Desktop\GM\Euro RPG\gamemodes\EuroRPG.pwn(823) : warning 215: expression has no effect
C:\Users\Yuri\Desktop\GM\Euro RPG\gamemodes\EuroRPG.pwn(823) : error 001: expected token: ";", but found "]"
C:\Users\Yuri\Desktop\GM\Euro RPG\gamemodes\EuroRPG.pwn(823) : fatal error 107: too many error messages on one line

Quote:

linha 223 - new PoliciaM[15];
linha 748 - LoadBancoDasOrgs();
linha 823 - PoliciaM[0] = CreateVehicle(497,1564.50000000,-1645.59960938,28.70000076,90.00000000,-1,24,15); //Police Maverick




Re: Erro ao Compilar - smiiir - 06.11.2012

coloco a variбvel no comeзo do GM?


Re: Erro ao Compilar - Yuri_xD - 06.11.2012

new PoliciaM[15];

'-'


Re: Erro ao Compilar - smiiir - 06.11.2012

Tenta Isso

pawn Код:
forward LoadBancoDasOrgs();//TOPO DO GM



Re: Erro ao Compilar - Yuri_xD - 06.11.2012

mais ja tem isso n no topo mais tem '-'

Quote:

forward LoadBancoDasOrgs();
public LoadBancoDasOrgs()
{
new arquivo[64];
new idx = 1;
while (idx < sizeof(BancoDasOrgs))
{
format(arquivo, sizeof(arquivo), "Cofre Org/Org%d.cfg",idx);
BancoDasOrgs[idx][pDinheiro] = DOF2_GetInt(arquivo,"Dinheiro");
BancoDasOrgs[idx][pEagle] = DOF2_GetInt(arquivo,"Eagle");
idx ++;
}
return 1;
}




Re: Erro ao Compilar - Yuri_xD - 06.11.2012

alguem ? '='


Re: Erro ao Compilar - smiiir - 06.11.2012

Tenta Colocar no Topo -'
Sei lбh, poe lб vai que funfa


Re: Erro ao Compilar - claudiosoares - 06.11.2012

Use desse jeito e veja o resultado.
Topo do GM:

forward LoadBancoDasOrgs();

linha 823 - CreateVehicle(497,1564.50000000,-1645.59960938,28.70000076,90.00000000,-1,24,15); //Police Maverick

linha 223 - new PoliciaM[15]; - Verifique melhor o nome certo, porque й um erro de nome invбlido...

Ajudei ? +REP (: