warning 208: function with tag result used before definition, forcing reparse
#1

Help Me
warning:
Quote:

(149705) : warning 208: function with tag result used before definition, forcing reparse

Quote:

forward AntiNameTag();
public AntiNameTag()
{
foreach(Player,playerid)
{
foreach(Player,i)
{
if(i == playerid) continue;
if(GetPlayerDistanceFromPlayer(playerid, i) <= MAX_DISTANCIA)
{
ShowPlayerNameTagForPlayer(playerid,i,true);
}
else
{
ShowPlayerNameTagForPlayer(playerid,i,false);
}
}
}
}
Float:GetPlayerDistanceFromPlayer(playerid, targetid)
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
return GetPlayerDistanceFromPoint(targetid, Pos[0], Pos[1], Pos[2]);
}

Reply
#2

After the includes, add:
pawn Код:
forward Float:GetPlayerDistanceFromPlayer(playerid, targetid);
Another way would be to move the function before the place is called.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)