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)
+--- Thread: warning 208: function with tag result used before definition, forcing reparse (
/showthread.php?tid=359341)
[RESOLVED] warning 208: function with tag result used before definition, forcing reparse -
vardanega - 13.07.2012
Hi ! With this function i get this warning:
warning 208: function with tag result used before definition, forcing reparse
Code:
stock Float:fRandom(Float:max)
{
return max*random(32768)/32768.0;
}
Thx for you help !
Re: warning 208: function with tag result used before definition, forcing reparse -
Vince - 13.07.2012
Either move the function to the top of your script, or forward it like a public function (including float tag).
pawn Code:
forward Float:fRandom(Float:max);
Re : warning 208: function with tag result used before definition, forcing reparse -
vardanega - 13.07.2012
Thx !!!