[Ajuda]Erro - 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 (
/showthread.php?tid=316665)
[Ajuda]Erro -
Geo1996 - 07.02.2012
error 017: undefined symbol "GetPointDistanceToPointExMorph"
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);
Erro> 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]Erro -
Abravanel - 07.02.2012
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);
}
Re: [Ajuda]Erro -
Geo1996 - 08.02.2012
Код:
warning 208: function with tag result used before definition, forcing reparse
pawn Код:
stock Float:GetPointDistanceToPointExMorph(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)
Re: [Ajuda]Erro -
Abravanel - 08.02.2012
Ponha a stock em cima da NameTimerGM
Re: [Ajuda]Erro -
Lucas_Alemao - 08.02.2012
ve se tirando o Float da:
pawn Код:
stock GetPointDistanceToPointExMorph(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)
Re: [Ajuda]Erro -
Geo1996 - 08.02.2012
deu funciono aki
rep+
Re: [Ajuda]Erro -
Lucas_Alemao - 08.02.2012
nossa kkkkkkkkkkkkkkk
tenta tirar a Float, igual eu te falei, e lugar de Stock й no fim do GM
Re: [Ajuda]Erro -
Abravanel - 08.02.2012
Essas funзхes e o NameTimerGM tem no include morphinc.
Onde vocк tб colocando isso ?
Re: [Ajuda]Erro -
Geo1996 - 08.02.2012
funciono eu tinha duas vez
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);
}
mas agora botei em cima de NametimerGm e pego