Warning 208 Help!
#1

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 .
Reply
#2

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).
Reply
#3

It is not used only here, so you'll have to move it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)