cuddly-table-7819
03/24/2023, 10:30 PMc++
GetVehicleHealth(vehicleid, vehiclehp);
if(FloatToInteger(vehiclehp) > FloatToInteger(VehicleInfo[vehicleid][vHealth]))
{
printf("%i/%i", FloatToInteger(vehiclehp), FloatToInteger(VehicleInfo[vehicleid][vHealth]));
c++
stock FloatToInteger(Float:floatnumber) {
new YourInteger = floatround(floatnumber, floatround_round);
return YourInteger;
}
sometimes prints
957/957
907/907
they are the same value, why it is entering on this if > ?