SA-MP Forums Archive
[Ajuda] Erro ao compilar depois de adicionar o seguinte comando - 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 ao compilar depois de adicionar o seguinte comando (/showthread.php?tid=628471)



Erro ao compilar depois de adicionar o seguinte comando - Fix3r - 10.02.2017

Код:
CMD:setarperto(playerid)
{
    new Pos[3];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);//Linha do erro (aviso)
    for(new i; i < MAX_PLAYERS+1; i++)
    {
        if(IsPlayerInRangeOfPoint(i, 50.0, Pos[0], Pos[1], Pos[2]))
        {
            SpawnPlayer(i);
        }
    }
    return 1;
}
O erro й o seguinte

Код:
C:\Users\Positivo\Desktop\Esdras\Servidor SAMP\GMS\BHS\gamemodes\BHS.pwn(5824) : warning 213: tag mismatch
C:\Users\Positivo\Desktop\Esdras\Servidor SAMP\GMS\BHS\gamemodes\BHS.pwn(5824) : warning 213: tag mismatch
C:\Users\Positivo\Desktop\Esdras\Servidor SAMP\GMS\BHS\gamemodes\BHS.pwn(5824) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          38796 bytes
Code size:          4374344 bytes
Data size:         10468304 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:14897828 bytes

3 Warnings.



Respuesta: Erro ao compilar depois de adicionar o seguinte comando - SammyJ - 10.02.2017

PHP код:
CMD:setarperto(playerid)
{
    new 
Float:Pos[3]; // vocк esqueceu ou nгo sabe, colocar a tag/tipagem:var;
    
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);//Linha do erro (aviso)
    
for(new iMAX_PLAYERS+1i++)
    {
        if(
IsPlayerInRangeOfPoint(i50.0Pos[0], Pos[1], Pos[2]))
        {
            
SpawnPlayer(i);
        }
    }
    return 
1;




Re: Respuesta: Erro ao compilar depois de adicionar o seguinte comando - Fix3r - 10.02.2017

Quote:
Originally Posted by SammyJ
Посмотреть сообщение
PHP код:
CMD:setarperto(playerid)
{
    new 
Float:Pos[3]; // vocк esqueceu ou nгo sabe, colocar a tag/tipagem:var;
    
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);//Linha do erro (aviso)
    
for(new iMAX_PLAYERS+1i++)
    {
        if(
IsPlayerInRangeOfPoint(i50.0Pos[0], Pos[1], Pos[2]))
        {
            
SpawnPlayer(i);
        }
    }
    return 
1;

Nossa, kkkk, Obrigado, to tentando fazer uma gm aki.... Vlw mesmo <3 hehe