SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 13/07/2012, 06:57 PM   #1
vardanega
Big Clucker
 
vardanega's Avatar
 
Join Date: Jul 2009
Location: Los Santos
Posts: 84
Reputation: 1
Default [RESOLVED] warning 208: function with tag result used before definition, forcing reparse

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 !

Last edited by vardanega; 13/07/2012 at 07:14 PM. Reason: [RESOLVED]
vardanega is offline   Reply With Quote
Old 13/07/2012, 07:13 PM   #2
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,066
Reputation: 2660
Default Re: warning 208: function with tag result used before definition, forcing reparse

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);
__________________
Vince is offline   Reply With Quote
Old 13/07/2012, 07:14 PM   #3
vardanega
Big Clucker
 
vardanega's Avatar
 
Join Date: Jul 2009
Location: Los Santos
Posts: 84
Reputation: 1
Default Re : warning 208: function with tag result used before definition, forcing reparse

Thx !!!
vardanega is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Facing a warning " warning 202: number of arguments does not match definition " Ehab1911 Help Archive 6 17/07/2011 05:35 PM
warning 202: number of arguments does not match definition HayZatic Help Archive 2 04/07/2011 11:12 PM
(Solved)function with tag result used before definition, forcing reparse linuxthefish Help Archive 2 31/03/2011 07:20 PM
Function with tag result used before definition, forcing reparse wups Help Archive 0 21/08/2010 06:51 PM
warning 208: function with tag result used before definition, forcing reparse Trooper[Y] Help Archive 1 24/06/2010 03:57 PM


All times are GMT. The time now is 05:00 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.