25.11.2016, 13:34
Help Me
warning:
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]); } |