syntax error in the expression, or invalid function call -
Duduloch - 22.09.2012
Erro:
pawn Код:
C:\Users\Usuario\Desktop\Server\gamemodes\BCCinicio.pwn(555) : error 076: syntax error in the expression, or invalid function call
Linha:
pawn Код:
MoveDynamicObject(FecharPRec, 250.5, 61.400001525879, 1005.200012207, 0, 0, 0, 3.0);
Att..
Rep ++ pra kem me der essa forзa!
Re: syntax error in the expression, or invalid function call -
Duduloch - 22.09.2012
Alguem poderia me ajudar?
Re: syntax error in the expression, or invalid function call -
Q.I - 22.09.2012
nao seria melhor usar
pawn Код:
MoveObject(FecharPRec, 250.5, 61.400001525879, 1005.200012207, 0, 0, 0, 3.0);
?
Re: syntax error in the expression, or invalid function call -
Duduloch - 22.09.2012
Quote:
Originally Posted by Q.I
nao seria melhor usar
pawn Код:
MoveObject(FecharPRec, 250.5, 61.400001525879, 1005.200012207, 0, 0, 0, 3.0);
?
|
Vou tentar
Re: syntax error in the expression, or invalid function call -
Duduloch - 22.09.2012
Nada ='(
Re: syntax error in the expression, or invalid function call -
Q.I - 22.09.2012
Quote:
Originally Posted by Duduloch
Nada ='(
|
poste desde dos new etc todas as parte que voce esta usando tal funзao.
Re: syntax error in the expression, or invalid function call -
Duduloch - 22.09.2012
Quote:
Originally Posted by Q.I
poste desde dos new etc todas as parte que voce esta usando tal funзao.
|
Beleza.
pawn Код:
new PortaRec;
forward FecharPRec();
forward FecharPortaoRec();
PortaRec = CreateDynamicObject(8957, 250.5, 61.400001525879, 1005.200012207, 0, 0, 0);
if(strcmp(cmdtext, "/abrirportrec", true) == 0) // porta recepcao DP
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 250.5, 61.400001525879, 1005.200012207))
{
MoveDynamicObject(PortaRec, 250.5, 61.400001525879, 999.79998779297, 3.0);
SetTimer("FecharPortaoRec", 12000, 0);
}
}
public FecharPortaoRec()
{
MoveDynamicObject(FecharPRec, 250.5, 61.400001525879, 1005.200012207, 0, 0, 0, 3.0);
return 1;
}
Isso ae '-'
Re: syntax error in the expression, or invalid function call -
Q.I - 22.09.2012
tente
pawn Код:
new PortaRec;
new FecharPRec;
forward FecharPortaoRec();
public OnGameModeInit()
{
PortaRec = CreateObject(8957, 250.5, 61.400001525879, 1005.200012207, 0, 0, 0);
return 1;
}
public FecharPortaoRec()
{
MoveObject(FecharPRec, 250.5, 61.400001525879, 1005.200012207, 0, 0, 0, 3.0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/abrirportrec", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 250.5, 61.400001525879, 1005.200012207))
{
MoveObject(PortaRec, 250.5, 61.400001525879, 999.79998779297, 3.0);
SetTimer("FecharPortaoRec", 12000, 0);
}
return 1; //havia esquecido.
}
return 0;
}
Re: syntax error in the expression, or invalid function call -
Duduloch - 22.09.2012
Quote:
Originally Posted by Q.I
tente
pawn Код:
new PortaRec; new FecharPRec; forward FecharPortaoRec();
public OnGameModeInit() { PortaRec = CreateObject(8957, 250.5, 61.400001525879, 1005.200012207, 0, 0, 0); return 1; }
public FecharPortaoRec() { MoveObject(FecharPRec, 250.5, 61.400001525879, 1005.200012207, 0, 0, 0, 3.0); return 1; }
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/abrirportrec", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 250.5, 61.400001525879, 1005.200012207)) { MoveObject(PortaRec, 250.5, 61.400001525879, 999.79998779297, 3.0); SetTimer("FecharPortaoRec", 12000, 0); } return 1; //havia esquecido. } return 0; }
|
Vou testar.. Jб jб retorno.
Re: syntax error in the expression, or invalid function call -
Duduloch - 22.09.2012
Quote:
Originally Posted by Q.I
tente
pawn Код:
new PortaRec; new FecharPRec; forward FecharPortaoRec();
public OnGameModeInit() { PortaRec = CreateObject(8957, 250.5, 61.400001525879, 1005.200012207, 0, 0, 0); return 1; }
public FecharPortaoRec() { MoveObject(FecharPRec, 250.5, 61.400001525879, 1005.200012207, 0, 0, 0, 3.0); return 1; }
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/abrirportrec", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 250.5, 61.400001525879, 1005.200012207)) { MoveObject(PortaRec, 250.5, 61.400001525879, 999.79998779297, 3.0); SetTimer("FecharPortaoRec", 12000, 0); } return 1; //havia esquecido. } return 0; }
|
pawn Код:
C:\Users\Usuario\Desktop\Server\gamemodes\BCCinicio.pwn(209) : error 017: undefined symbol "PortaRec"
C:\Users\Usuario\Desktop\Server\gamemodes\BCCinicio.pwn(382) : error 017: undefined symbol "PortaRec"
C:\Users\Usuario\Desktop\Server\gamemodes\BCCinicio.pwn(556) : error 076: syntax error in the expression, or invalid function call
tб tenso