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=345329)



[ajuda]erro ao compilar - Yuri_xD - 24.05.2012

Quote:

C:\Users\Yuri\Desktop\[GM] - Brasil Hyper Life [TECNO-SAMP]\gamemodes\MegaLife.pwn(1177 : error 076: syntax error in the expression, or invalid function call
C:\Users\Yuri\Desktop\[GM] - Brasil Hyper Life [TECNO-SAMP]\gamemodes\MegaLife.pwn(34093) : error 076: syntax error in the expression, or invalid function call
C:\Users\Yuri\Desktop\[GM] - Brasil Hyper Life [TECNO-SAMP]\gamemodes\MegaLife.pwn(45370) : error 021: symbol already defined: "PortaoBL2"
C:\Users\Yuri\Desktop\[GM] - Brasil Hyper Life [TECNO-SAMP]\gamemodes\MegaLife.pwn(45372) : error 010: invalid function or declaration
C:\Users\Yuri\Desktop\[GM] - Brasil Hyper Life [TECNO-SAMP]\gamemodes\MegaLife.pwn(50414) : warning 203: symbol is never used: "PortaoBL2"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

alguem me ajuda?


Re: [ajuda]erro ao compilar - paulor - 24.05.2012

Poste as linhas!

PortaoBL2 vc criou 2 iguais e nгo esta usando elas. Se for usar apague uma, caso nгo for usar apague as duas!


Re: [ajuda]erro ao compilar - Yuri_xD - 24.05.2012

so tem um portaobl2 criado vei e ta dando esse erro


Re: [ajuda]erro ao compilar - ViniBorn - 24.05.2012

Entгo posta tudo que envolve PortaoBL2


Re: [ajuda]erro ao compilar - Yuri_xD - 24.05.2012

Tudo ai...

Quote:

new PortaoBL2;
//----------------------------------{PortaoBallas}----------------------------------------
if(strcmp(cmd, "/portaoballas", true) == 0 || strcmp(cmd, "/pballas", true) == 0)
{
if ((IsABL(playerid)) && PlayerToPoint(15.0, playerid, 1074.3000488281,-1206.9000244141,19.39999961853))
{ //PortaoAdmin
MoveObject( PortaoBL, 777.80017089844, -1330.2664794922, 20.200000762939,3,0.0,0.0,0.0);
GameTextForPlayer(playerid, "~w~Portao ~y~Ballas ~n~~b~Aberto", 5000, 3);
SetTimer("PortaoBL2", 5000, false);
}
return true;
}
public PortaoBL2() {
MoveObject(PortaoBL,1074.3000488281,-1206.9000244141,19.39999961853, 2);//Portao Ballas Closed
return true;
}




Re: [ajuda]erro ao compilar - paulor - 24.05.2012

pawn Код:
new PortaoBL2;
public PortaoBL2()
Por isso! Mude o nome de algum deles!


Re: [ajuda]erro ao compilar - Yuri_xD - 24.05.2012

n entendi cara


Re: [ajuda]erro ao compilar - ViniBorn - 24.05.2012

Ou vocк muda o nome da variбvel, ou o nome da public/forward


Re: [ajuda]erro ao compilar - paulor - 24.05.2012

Vocк ja definiu 'PortaoBL2', uma como Var e outra como public, por isso ocorre o erro! Basta mudar o nome de um deles... Ex:

pawn Код:
new PortaoBL2;
public PortaoBL22()



Re: [ajuda]erro ao compilar - Yuri_xD - 24.05.2012

sim cara