SA-MP Forums Archive
[AJUDA]Corrigir Erros - 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]Corrigir Erros (/showthread.php?tid=155392)



[AJUDA]Corrigir Erros - angels182 - 18.06.2010

C:\Users\Egon\Desktop\Novo Gang War.pwn(235) : error 018: initialization data exceeds declared size
C:\Users\Egon\Desktop\Novo Gang War.pwn(274) : error 018: initialization data exceeds declared size
C:\Users\Egon\Desktop\Novo Gang War.pwn(40 : error 017: undefined symbol "playerCheckpoint"
C:\Users\Egon\Desktop\Novo Gang War.pwn(40 : warning 215: expression has no effect
C:\Users\Egon\Desktop\Novo Gang War.pwn(40 : error 001: expected token: ";", but found "]"
C:\Users\Egon\Desktop\Novo Gang War.pwn(40 : error 029: invalid expression, assumed zero
C:\Users\Egon\Desktop\Novo Gang War.pwn(40 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.


Linhas:

226 new propertyNames[MAX_PROPERTIES][13] = {
227 "Four Dragons",
228 "Sex Shop",
229 "Shithole Bar",
230 "Caligula",
231 "Zip Shop",
232 "Binco Shop",
233 "Tatoo Parlor",
234 "Botique",
235 "Gang Base Industrial",
236 "Gang Base Armazem",
237 "Gang Base School",
238 "Gang Base Sitio",
239 "Gang Base Aero",
240 };

274 new propertyOwner[MAX_PROPERTIES] = {999,999,999,999,999,999,999,999,999,999,999,999,9 99,999,999,999,999};


407 public getCheckpointType(playerID) {
408 return checkpointType[playerCheckpoint[playerID]];
409 }



Re: [AJUDA]Corrigir Erros - [BEP]AcerPilot - 18.06.2010

Код:
226     new propertyNames[MAX_PROPERTIES][13] = {
227     "Four Dragons",
228     "Sex Shop",
229     "Shithole Bar",
230     "Caligula",
231     "Zip Shop",
232     "Binco Shop",
233     "Tatoo Parlor",
234     "Botique",
235     "Gang Base Industrial",
236     "Gang Base Armazem",
237     "Gang Base School",
238     "Gang Base Sitio",
239     "Gang Base Aero"
240     };

274     new propertyOwner[MAX_PROPERTIES] = {999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999};


407    public getCheckpointType(playerID) {
408    return checkpointType[playerCheckpoint(playerid)];
409    }
Talvez funcione.


Re: [AJUDA]Corrigir Erros - angels182 - 18.06.2010

Arrumei 1 deles

C:\Users\Egon\Desktop\Gang War.pwn(255) : error 018: initialization data exceeds declared size
C:\Users\Egon\Desktop\Gang War.pwn(42 : error 017: undefined symbol "playerCheckpoint"
C:\Users\Egon\Desktop\Gang War.pwn(42 : warning 215: expression has no effect
C:\Users\Egon\Desktop\Gang War.pwn(42 : error 001: expected token: ";", but found "]"
C:\Users\Egon\Desktop\Gang War.pwn(42 : error 029: invalid expression, assumed zero
C:\Users\Egon\Desktop\Gang War.pwn(42 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.



Re: [AJUDA]Corrigir Erros - angels182 - 18.06.2010

Ajuda akii


Re: [AJUDA]Corrigir Erros - Ricardo_Saddler - 18.06.2010

Nгo tenho bola de cristal para ver as linhas do seu GM que dгo o erro.

Mas com meus superpoderes posso deduzir:

Que na linha 428 esteja faltando um colchete "]";
Que vocк nгo definiu "playerCheckpoint".

Para mais precisгo na ajuda por favor poste as linhas do erro!


Re: [AJUDA]Corrigir Erros - angels182 - 18.06.2010

C:\Users\Egon\Desktop\Gang War.pwn(281) : error 018: initialization data exceeds declared size
C:\Users\Egon\Desktop\Gang War.pwn(2612) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2612) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2612) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2612) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2624) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2624) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2624) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2624) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2635) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2635) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2635) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2635) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2646) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2646) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2646) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2646) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2657) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2657) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2657) : warning 202: number of arguments does not match definition
C:\Users\Egon\Desktop\Gang War.pwn(2657) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.



Linha 281:

new propertyNames[MAX_PROPERTIES][13] = {
"Four Dragons",
"Sex Shop",
"Shithole Bar",
"Caligula",
"Zip Shop",
"Binco Shop",
"Tatoo Parlor",
"Botique",
"Gang Base Industrial",
"Gang Base Armazem",
"Gang Base School",
"Gang Base Sitio",
"Gang Base Aero"
};


As outras linhas sao


switch(gz)
{
case 0:
{
if((!GZ[gz]) || (GZ[gz] == 555))
{
2612 GZ[gz] = GangZoneCreate(2727,948,2656,882, 2829,474,2769,056);
GangZoneShowForAll(GZ[gz], playerCor);
gangZonaId[gz] = playerGang[playerid];
GZ_EXISTE[gz][0] = 1;
GZ_EXISTE[gz][1] = playerCor;
}
}
case 1:
{

if((!GZ[gz]) || (GZ[gz] == 555))
{
2624 GZ[gz] = GangZoneCreate(2759,187,854,3636,2876,332,1020,69) ;
GangZoneShowForAll(GZ[gz], playerCor);
gangZonaId[gz] = playerGang[playerid];
GZ_EXISTE[gz][0] = 1;
GZ_EXISTE[gz][1] = playerCor;
}
}
case 2:
{
if((!GZ[gz]) || (GZ[gz] == 555))
{
2635 GZ[gz] = GangZoneCreate(962,957, 985,8779,1154,294,1171,545);
GangZoneShowForAll(GZ[gz], playerCor);
gangZonaId[gz] = playerGang[playerid];
GZ_EXISTE[gz][0] = 1;
GZ_EXISTE[gz][1] = playerCor;
}
}
case 3:
{
if((!GZ[gz]) || (GZ[gz] == 555))
{
2646 GZ[gz] = GangZoneCreate(1015,975,-385,3699,1167,788,-268,5911);
GangZoneShowForAll(GZ[gz], playerCor);
gangZonaId[gz] = playerGang[playerid];
GZ_EXISTE[gz][0] = 1;
GZ_EXISTE[gz][1] = playerCor;
}
}
case 4:
{
if((!GZ[gz]) || (GZ[gz] == 555))
{
2657 GZ[gz] = GangZoneCreate(210,2018,2405,642,455,4371,2557,455 );
GangZoneShowForAll(GZ[gz], playerCor);
gangZonaId[gz] = playerGang[playerid];
GZ_EXISTE[gz][0] = 1;
GZ_EXISTE[gz][1] = playerCor;
}
}
default: return 1;
}
}


Re: [AJUDA]Corrigir Erros - Rick_DR - 19.06.2010

assim й difнcil a gente ajudar ! organiza as cenas

[ pawn ] texto [/ pawn ] sem espaзo.


Re: [AJUDA]Corrigir Erros - RoamPT - 19.06.2010

Nгo respeitas as regras, locked!