03.01.2012, 22:39
You could use a function like this:
pawn Код:
// This function can be used to check if a float matches the other one
CheckFloat(Float:Value1, Float:Value2)
{
// Check if Value1 is nearly the same as Value2
if (((Value2 - 0.1) < Value1) && (Value1 < (Value2 + 0.1)))
return 1;
else
return 0;
}
// Compare if 2 floats are the same
GetPlayerHealth(playerid, health);
if (CheckFloat(health, 100.0) == 1) return SendClientMessage(playerid,lightyellow,"I think you are bit too full for eating");

