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

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)
Reply
#2

Solution : Copy it to the end of the script Oo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)