warning 208 - 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)
+--- Thread: warning 208 (
/showthread.php?tid=483649)
warning 208 -
Champ - 27.12.2013
pawn Код:
stock Float:Distance(Float:vector1[], Float:vector2[])
{
new Float:dX = vector1[0] - vector2[0],
Float:dY = vector1[1] - vector2[1],
Float:dZ = vector1[2] - vector2[2];
return (dX*dX + dY*dY + dZ*dZ);
}
Код:
warning 208: function with tag result used before definition, forcing reparse
Re: warning 208 -
MP2 - 27.12.2013
You need to define the function BEFORE you use it.
Re: warning 208 -
Threshold - 27.12.2013
Quote:
Originally Posted by Vince
Either move the function to the top of your script, or forward it like a public function (including float tag).
|
Use the 'search' button next time.
EDIT: Forgot to refresh the page before posting :S
Re: warning 208 -
Champ - 27.12.2013
I moved the stock and the problem solved.
Thank You BenzoAMG and MP2