[Ajuda] Erro na funзгo RemoveBuildingForPlayer.
#1

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б.
Reply
#2

Atualizou suas includes?
Reply
#3

Colocou no OnPlayerConnect?
Reply
#4

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

Minhas includes estгo atualizadas.

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

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;
}
Reply
#7

Exemplo:

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

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
Reply
#9

Atualiza as Includes , eu fiz merda HAHA
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)