Warning 208 Help! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Warning 208 Help! (
/showthread.php?tid=604630)
Warning 208 Help! -
Skrixel - 08.04.2016
Hi Please help me I was out this error.
Quote:
warning 208: function with tag result used before definition, forcing reparse
|
Line Error
Quote:
Floatlayer_get_speed(playerid)
|
The complete line.
Quote:
Floatlayer_get_speed(playerid)
{
new
Float: Floats[3];
GetVehicleVelocity(GetPlayerVehicleID(playerid), Floats[0], Floats[1], Floats[2]);
return floatsqroot(Floats[0] * Floats[0] + Floats[1] * Floats[1] + Floats[2] * Floats[2]) * 150;
}
|
I would greatly appreciate , Thank you .
Re: Warning 208 Help! -
shourya12 - 08.04.2016
It's used somewhere else
Either move the function to the top of your script, or forward it like a public function (including float tag).
Re: Warning 208 Help! -
iKevin - 08.04.2016
It is not used only here, so you'll have to move it.