08.08.2011, 14:56
I'm havin' a little bit of trouble with this:
Line 34373:
This is the rest of the stock:
I'm sorry for the post, and I hope that somebody can help me for some rep :3.
Код:
LINE 34373: warning 208: function with tag result used before definition, forcing reparse
pawn Код:
stock Float:GetVehicleSpeed(vehicleid,UseMPH = 0)
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;
}