SA-MP Forums Archive
warning 208: function with tag result used before definition, forcing reparse - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: warning 208: function with tag result used before definition, forcing reparse (/showthread.php?tid=156886)



warning 208: function with tag result used before definition, forcing reparse - Trooper[Y] - 24.06.2010

Warning :
Quote:

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

Line :
Код:
forward IsPlayerAimingAt(Float:x, Float:y, Float:z, Float:radius,Float:camposx,Float:camposy,Float:camposz,Float:vecx,Float:vecy,Float:vecz);
public IsPlayerAimingAt(Float:x, Float:y, Float:z, Float:radius,Float:camposx,Float:camposy,Float:camposz,Float:vecx,Float:vecy,Float:vecz) //error line
{
	new Float:t = DistanceCameraTargetToLocation(camposx, camposy, camposz, x, y, z, vecx, vecy, vecz);
	return (radius >= t);
}
Regards,
Trooper, never saw this error before
(snippet made by myself, cause im using a loop for checking and wanted to speed it up)


Re: warning 208: function with tag result used before definition, forcing reparse - Trooper[Y] - 24.06.2010

Solution : Copy it to the end of the script Oo