SA-MP Forums Archive
[Ajuda] Compilar - 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] Compilar (/showthread.php?tid=167378)



[Ajuda] Compilar - shutt_down - 12.08.2010

Quando vou compilar apareзe esse ERROR.
Alguem me ajuda ?
eu nгo sei mecher mto com isso !


Код:
D:\Documents and Settings\shutt\Desktop\GM\gamemodes\DFS.pwn(40637) : error 021: symbol already defined: "PlayerToPoint"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: [Ajuda] Compilar - ipsBruno - 12.08.2010

@Shutt_Down
CTRL + F -> 'PlayerToPoint'

Apague de PlayerToPoint atй o Final Dele, Normalmente Apуs de Return 1; '}'


- shutt_down - 12.08.2010

Agora aparece um erro maior ! "/


Re: [Ajuda] Compilar - TiagoPS - 12.08.2010

No inicio do GM
pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
No final do GM

pawn Код:
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    if(IsPlayerConnected(playerid))
    {
        new Float:oldposx, Float:oldposy, Float:oldposz;
        new Float:tempposx, Float:tempposy, Float:tempposz;
        GetPlayerPos(playerid, oldposx, oldposy, oldposz);
        tempposx = (oldposx -x);
        tempposy = (oldposy -y);
        tempposz = (oldposz -z);
        if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
        {
            return 1;
        }
    }
    return 0;
}



Re: [Ajuda] Compilar - Macintosh - 12.08.2010

Posta a linha do erro ninguem й adivinha pra descobrir!