Warning 208: function with tag result used before definition, forcing reparse
#1

I'm getting this warning
Код:
warning 208: function with tag result used before definition, forcing reparse
on this line

PHP код:
Float:GetVehicleHealth2(vehicleid) 
The full code is

PHP код:
Float:GetVehicleHealth2(vehicleid)
{
    new 
Float:health;
    
GetVehicleHealth(vehicleid, health);
    return 
health < 250.0 ? 100.0 : (100.0 - (health / 10)) * 1.333333;
} 
Please help, as always the person who offers help will get +1 rep
Reply
#2

Either move it to the top of the script or place it RIGHT before you use the function.
Reply
#3

Thank you, I fixed it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)