24.06.2012, 19:52
Simply use the floatround function on the variable that is causing the issue, as the function will round off the float to an integer, which is what your function requires, I suspect it's the "Armor" variable, so you can fix the warning by simply doing something like this:
That's assuming ArmourLost is an integer, if it isn't, then you should do this:
Alternatively, you could just make your function accept float values by adding the Float tag before the parameter.
Hope that helps!
pawn Код:
SetCutArmor(Target, ArmourLost + floatround(Armor));
pawn Код:
SetCutArmor(Target, floatround(ArmourLost + Armor));
Hope that helps!