SA-MP Forums Archive
[Ajuda] Erro na funзгo RemoveBuildingForPlayer. - 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 na funзгo RemoveBuildingForPlayer. (/showthread.php?tid=415821)



Erro na funзгo RemoveBuildingForPlayer. - LucasTop - 14.02.2013

Jб estou tentando isso faz tempo. Simplesmente dб erro ao compilar com a funзгo RemoveBuildingForPlayer.

De primeira o erro era:
Код:
017: undefined symbol "RemoveBuildingForPlayer"
E o de agora й o mesmo, sу que desta forma:
Код:
017: undefined symbol "playerid"
Nгo sei o que fazer para resolver isto. O meu servidor estб na versгo 0.3e...

Segue as linhas dos erros:
Код:
RemoveBuildingForPlayer(playerid, 1412, 1917.3203, -1797.4219, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1912.0547, -1797.4219, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1906.7734, -1797.4219, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1927.8516, -1797.4219, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1922.5859, -1797.4219, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1938.3906, -1797.4219, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1933.1250, -1797.4219, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1821.1250, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1815.8594, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1810.5938, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1805.3281, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1948.9844, -1797.4219, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1943.6875, -1797.4219, 13.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1800.0625, 13.8125, 0.25);
O que eu devo fazer para que esta funзгo funcione? O que eu tenho que mudar aн?
Me ajudem por favor. Grato desde jб.



Re: Erro na funзгo RemoveBuildingForPlayer. - HumildadeAgain - 14.02.2013

Atualizou suas includes?


Re: Erro na funзгo RemoveBuildingForPlayer. - Delete_ - 14.02.2013

Colocou no OnPlayerConnect?


Re: Erro na funзгo RemoveBuildingForPlayer. - MatheusAlcapone - 14.02.2013

Atualize suas includes e verifique se a funзгo esta na CallBack OnPlayerConnect


Re: Erro na funзгo RemoveBuildingForPlayer. - LucasTop - 14.02.2013

Minhas includes estгo atualizadas.

Como devo colocar no OnPlayerConnect? Me deem o cуdigo de como devo pфr, por favor!


Re: Erro na funзгo RemoveBuildingForPlayer. - mau.tito - 14.02.2013

Quote:
Originally Posted by LucasTop
Посмотреть сообщение
Minhas includes estгo atualizadas.

Como devo colocar no OnPlayerConnect? Me deem o cуdigo de como devo pфr, por favor!
Pronto bebe ta na mгo .
pawn Код:
public OnPlayerConnect(playerid)
{
     RemoveBuildingForPlayer(playerid, 1412, 1917.3203, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1912.0547, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1906.7734, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1927.8516, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1922.5859, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1938.3906, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1933.1250, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1821.1250, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1815.8594, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1810.5938, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1805.3281, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1948.9844, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1943.6875, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1800.0625, 13.8125, 0.25);
     return 1;
}



Re: Erro na funзгo RemoveBuildingForPlayer. - MatheusAlcapone - 14.02.2013

Exemplo:

pawn Код:
public OnPlayerConnect(playerid)
{
     RemoveBuildingForPlayer(playerid, 1412, 1917.3203, -1797.4219, 13.8125, 0.25);
     return 1;
}



Re: Erro na funзгo RemoveBuildingForPlayer. - LucasTop - 14.02.2013

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
Pronto bebe ta na mгo .
pawn Код:
public OnPlayerConnect(playerid)
{
     RemoveBuildingForPlayer(playerid, 1412, 1917.3203, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1912.0547, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1906.7734, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1927.8516, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1922.5859, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1938.3906, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1933.1250, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1821.1250, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1815.8594, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1810.5938, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1805.3281, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1948.9844, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1943.6875, -1797.4219, 13.8125, 0.25);
     RemoveBuildingForPlayer(playerid, 1412, 1951.6094, -1800.0625, 13.8125, 0.25);
     return 1;
}
Coloquei assim e o resultado foi os mesmos erros e 1 warning...
Em que parte do gm devo pфr? Eu coloquei na mesma parte em que estavam os RemoveBuilding.

Код:
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1269) : error 029: invalid expression, assumed zero
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1269) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1271) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1272) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1273) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1274) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1275) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1276) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1277) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1278) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1279) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1280) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1281) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1282) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1283) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1284) : error 017: undefined symbol "playerid"
C:\Users\Documentos\Meus Arquivos\BrasilSuperLife 0.3e\gamemodes\BrasilSuperLife_RPG.pwn(1288) : warning 225: unreachable code



Re: Erro na funзгo RemoveBuildingForPlayer. - MatheusFuria - 14.02.2013

Atualiza as Includes , eu fiz merda HAHA


Re: Erro na funзгo RemoveBuildingForPlayer. - Gii - 14.02.2013

Quote:
Originally Posted by MatheusFuria
Посмотреть сообщение
Код:
public OnPlayerConnect(playerid)
{
     for(new i=0; i<MAX_PLAYERS; i++)
	{
     RemoveBuildingForPlayer(i, 1412, 1917.3203, -1797.4219, 13.8125, 0.25);
     return 1;
        }    
}
tenta awe
Trбgico.


Manda sua:

pawn Код:
public OnPlayerConnect