[Ajuda] invalid function or declaration -
wallacematheus - 03.06.2011
pawn Код:
C:\Documents and Settings\Wallace\Desktop\corrida.pwn(166) : error 010: invalid function or declaration
C:\Documents and Settings\Wallace\Desktop\corrida.pwn(168) : error 010: invalid function or declaration
C:\Documents and Settings\Wallace\Desktop\corrida.pwn(172) : error 010: invalid function or declaration
C:\Documents and Settings\Wallace\Desktop\corrida.pwn(177) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
linhas:
pawn Код:
if (strcmp(cmd, "/elevador2", true) == 0)
{
if(PlayerToPoint(2.0, playerid, 1912.76464844,-1356.61962891,13.28764534)) //linha 168 comeзa aki
{
SetPlayerPos(playerid, 1910.75439453,-1356.62219238,13.82241058);
}
if(PlayerToPoint(2.0, playerid, 1910.75439453,-1356.62219238,13.82241058))
{
SetPlayerPos(playerid, 1912.76464844,-1356.61962891,13.28764534);
}
}
return 1;
} // 178 termina aki
Re: [Ajuda] invalid function or declaration -
Shadoww5 - 03.06.2011
Tenta isto:
PHP код:
if (strcmp(cmd, "/elevador2", true) == 0)
{
if(PlayerToPoint(2.0, playerid, 1912.76464844,-1356.61962891,13.28764534))
{
SetPlayerPos(playerid, 1910.75439453,-1356.62219238,13.82241058);
return 1;
}
if(PlayerToPoint(2.0, playerid, 1910.75439453,-1356.62219238,13.82241058))
{
SetPlayerPos(playerid, 1912.76464844,-1356.61962891,13.28764534);
return 1;
}
return 1;
}
Ou isto:
PHP код:
if (strcmp(cmd, "/elevador2", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 1912.76464844,-1356.61962891,13.28764534))
{
SetPlayerPos(playerid, 1910.75439453,-1356.62219238,13.82241058);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,2.0, 1910.75439453,-1356.62219238,13.82241058))
{
SetPlayerPos(playerid, 1912.76464844,-1356.61962891,13.28764534);
return 1;
}
return 1;
}
Re: [Ajuda] invalid function or declaration -
wallacematheus - 03.06.2011
o erro tirou agora aparece essas duas warnings
pawn Код:
C:\Documents and Settings\Wallace\Meus documentos\GM BSG\filterscripts\corrida.pwn(142) : warning 206: redundant test: constant expression is non-zero
C:\Documents and Settings\Wallace\Meus documentos\GM BSG\filterscripts\corrida.pwn(147) : warning 206: redundant test: constant expression is non-zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
Re: [Ajuda] invalid function or declaration -
wallacematheus - 03.06.2011
ops desculpae ae esqueci das linhas as linhas sгo estas
pawn Код:
if(PlayerToPoint(2.0, playerid, 1912.76464844,-1356.61962891,13.28764534)) //142
{
SetPlayerPos(playerid, 1910.75439453,-1356.62219238,13.82241058);
return 1;
}
if(PlayerToPoint(2.0, playerid, 1910.75439453,-1356.62219238,13.82241058)) //147
{
SetPlayerPos(playerid, 1912.76464844,-1356.61962891,13.28764534);
return 1;
}
Re: [Ajuda] invalid function or declaration -
Shadoww5 - 03.06.2011
PHP код:
if(IsPlayerInRangeOfPoint(playerid,2.0, 1912.76464844,-1356.61962891,13.28764534))
{
SetPlayerPos(playerid, 1910.75439453,-1356.62219238,13.82241058);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,2.0, 1910.75439453,-1356.62219238,13.82241058))
{
SetPlayerPos(playerid, 1912.76464844,-1356.61962891,13.28764534);
return 1;
}