warning 213: tag mismatch on custom function
#6

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:

pawn Код:
SetCutArmor(Target, ArmourLost + floatround(Armor));
That's assuming ArmourLost is an integer, if it isn't, then you should do this:

pawn Код:
SetCutArmor(Target, floatround(ArmourLost + Armor));
Alternatively, you could just make your function accept float values by adding the Float tag before the parameter.

Hope that helps!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)