HELP FOR PROBLEM!!! - 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: HELP FOR PROBLEM!!! (
/showthread.php?tid=388623)
HELP FOR PROBLEM!!! -
eltata22 - 29.10.2012
Hi all mi problem is : function with tag result used before definition, forcing reparse
In line : stock Float
istanceToPoint(Float: X1, Float:Y1, Float:Z1, Float:X3, Float:Y3, Float:Z3) return Float:floatsqroot(((X3 - X1) * (X3 - X1)) + ((Y3 - Y1) * (Y3 - Y1)) + ((Z3 - Z1) * (Z3 - Z1)));
bye
Re: HELP FOR PROBLEM!!! -
ryansheilds - 29.10.2012
It means you're using the stock in the code before it is defined, just move the stock closer to the top of the script - before where it is used. (Which is clearly stated)
Respuesta: HELP FOR PROBLEM!!! -
eltata22 - 29.10.2012
and if I put the stock near the beginning of GM would be better?
Re: HELP FOR PROBLEM!!! -
ryansheilds - 29.10.2012
Just place it before the place it's used - then the warning will be gone. So not directly at the top.
Respuesta: HELP FOR PROBLEM!!! -
eltata22 - 29.10.2012
THANKKKKKKKKKKKKK MANNNNNN I LOVE YOU : D