SA-MP Forums Archive
Ajuda no pawn - 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 no pawn (/showthread.php?tid=301028)



Ajuda no pawn - pedrocavaco - 02.12.2011

Gente estou com esse erro por favor me ajudem:

pawn Код:
C:\Users\PedroJuan\Desktop\GM\gamemodes\SAMPFOREVERN.PWN(75866) : error 017: undefined symbol "GetPointDistanceToPointExMorph"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Para mais informaзгo ta aqui o code:

pawn Код:
public NameTimerGM()
{
    for(new i = 0;i < MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            for(new q = 0;q < MAX_PLAYERS;q++)
            {
                if(IsPlayerConnected(q))
                {
                    new Float:p1x;
                    new Float:p1y;
                    new Float:p1z;
                    new Float:p2x;
                    new Float:p2y;
                    new Float:p2z;
                    if(IsPlayerConnected(i) && IsPlayerConnected(q))
                    {
                        GetPlayerPos(i,p1x,p1y,p1z);
                        GetPlayerPos(q,p2x,p2y,p2z);
                        if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
                        {
                            if(PlayerInfo[q][pMaskuse] != 1)
                            {
                                ShowPlayerNameTagForPlayer(i,q,1);
                            }
                        }
                        else
                        {
                            ShowPlayerNameTagForPlayer(i,q,0);
                        }
                    }
                }
            }
        }
    }
}



Re: Ajuda no pawn - GabrielDias_Invision - 02.12.2011

pawn Код:
stock Float:GetPointDistanceToPointExMorph(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)
{
        new Float:x, Float:y, Float:z;
        x = x1-x2;
        y = y1-y2;
        z = z1-z2;
        return floatsqroot(x*x+y*y+z*z);
}
final do GM


Re: Ajuda no pawn - pedrocavaco - 02.12.2011

VLw