Warning help.
#1

I'm havin' a little bit of trouble with this:

Код:
LINE 34373: warning 208: function with tag result used before definition, forcing reparse
Line 34373:
pawn Код:
stock Float:GetVehicleSpeed(vehicleid,UseMPH = 0)
This is the rest of the stock:

pawn Код:
stock Float:GetVehicleSpeed(vehicleid,UseMPH = 0)
{
    new Float:speed_x,Float:speed_y,Float:speed_z,Float:temp_speed;
    GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
    if(UseMPH == 0)
    {
        temp_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*136.666667;
    } else {
        temp_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*85.4166672;
    }
    floatround(temp_speed,floatround_round);return temp_speed;
}
I'm sorry for the post, and I hope that somebody can help me for some rep :3.
Reply


Messages In This Thread
Warning help. - by iGetty - 08.08.2011, 14:56
Re: Warning help. - by Vince - 08.08.2011, 14:59
Re: Warning help. - by iGetty - 08.08.2011, 15:01

Forum Jump:


Users browsing this thread: 2 Guest(s)