[DUV] 5 erros nos portхes... -
JuniorArms - 21.01.2011
pawn Код:
C:\Documents and Settings\Luciano\Desktop\Nova pasta\gamemodes\WILS.pwn(611) : error 021: symbol already defined: "portaobiker"
C:\Documents and Settings\Luciano\Desktop\Nova pasta\gamemodes\WILS.pwn(612) : error 010: invalid function or declaration
C:\Documents and Settings\Luciano\Desktop\Nova pasta\gamemodes\WILS.pwn(613) : error 010: invalid function or declaration
C:\Documents and Settings\Luciano\Desktop\Nova pasta\gamemodes\WILS.pwn(614) : error 010: invalid function or declaration
C:\Documents and Settings\Luciano\Desktop\Nova pasta\gamemodes\WILS.pwn(618) : error 010: invalid function or declaration
C:\Documents and Settings\Luciano\Desktop\Nova pasta\gamemodes\WILS.pwn(100) : warning 204: symbol is assigned a value that is never used: "portaobiker"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Fui colocar portхes automбticos seguindo esse tutorial:
https://sampforum.blast.hk/showthread.php?tid=114459
A linha 611, 612, 613, 614:
pawn Код:
public portaobiker() {
for(new i=0; i < MAX_PLAYERS; i++){
if( gTeam[i] == TEAM_BIKER) {
if(PlayerToPoint(15, i, 988,1827.91101074,-1866.48901367,12.38583660,0.00000000,0.00000000,273.996582030))
A linha 100:
pawn Код:
portaobiker = CreateObject(988,1827.91101074,-1866.48901367,12.38583660,0.00000000,0.00000000,273.99658203); //object(ws_apgate) (1)
Na linha 100 eu coloquei o que pedia, acho que nгo tem nada de errado.
Precisava por o //object(ws_apgate)? Esse й o nome do objeto que coloquei (portгo).
ME AJUDEM POR FAVOR
Re: [DUV] 5 erros nos portхes... -
humildadeforever - 21.01.2011
na linha
pawn Код:
if(PlayerToPoint(15, i, 988,1827.91101074,-1866.48901367,12.38583660,0.00000000,0.00000000,273.996582030))
acho que o correto seria
pawn Код:
if(PlayerToPoint(15, i, 988,1827.91101074,-1866.48901367,12.38583660))
Re: [DUV] 5 erros nos portхes... -
JuniorArms - 21.01.2011
Coloquei isso e tб a mesma coisa...
Re: [DUV] 5 erros nos portхes... -
humildadeforever - 21.01.2011
tem public do playertopoint?
Re: [DUV] 5 erros nos portхes... -
ManoLexuS - 22.01.2011
Cara a variavel nгo pode ser igual ao public.
Ou seja vocк criou:
pawn Код:
new portaobiker;
portaobiker = CreateObject(988, 1827.91101074, -1866.48901367, 12.38583660, 0.00000000, 0.00000000, 273.99658203);
e:
pawn Код:
forward portaobiker();
public portaobiker()
{
}
Vocк deve mudar a variavel ou o nome do public.