[HELP] 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: [HELP] warning 208: function with tag result used before definition, forcing reparse (
/showthread.php?tid=593603)
Deleted. -
KONTROWKEN - 07.11.2015
Deleted.
Re: [HELP] warning 208: function with tag result used before definition, forcing reparse -
Crayder - 07.11.2015
That simply means you are using the function before it is declared. You can easily bypass this by adding the following line to the top of your script somewhere:
pawn Код:
forward Float:GetDistanceBetweenPlayers(p1,p2);
Re: [HELP] warning 208: function with tag result used before definition, forcing reparse -
KONTROWKEN - 07.11.2015
Deleted.
Re: [HELP] warning 208: function with tag result used before definition, forcing reparse -
SecretBoss - 07.11.2015
Quote:
Originally Posted by Crayder
That simply means you are using the function before it is declared. You can easily bypass this by adding the following line to the top of your script somewhere:
pawn Код:
forward Float:GetDistanceBetweenPlayers(p1,p2);
|
He is using a stock not a custom callback
Re: [HELP] warning 208: function with tag result used before definition, forcing reparse -
Crayder - 07.11.2015
Quote:
Originally Posted by SecretBoss
He is using a stock not a custom callback
|
You clearly have no clue what the 'forward' keyword is for.
www.compuphase.com/pawn/Pawn_Language_Guide.pdf
Re: [HELP] warning 208: function with tag result used before definition, forcing reparse -
SecretBoss - 07.11.2015
Quote:
Originally Posted by Crayder
|
Have you ever seen something like that?
Код:
forward myFunction();
stock myFunction()
{
return 1;
}
Re: [HELP] warning 208: function with tag result used before definition, forcing reparse -
Crayder - 07.11.2015
Quote:
Originally Posted by SecretBoss
Have you ever seen something like that?
Код:
forward myFunction();
stock myFunction()
{
return 1;
}
|
Yes, I have. Also it doesn't apply to just stocked functions.