30.10.2012, 04:00
Something might be up with Pawn's implicit float/int conversion (operator +=). Try doing it explicitly using the float() function... try changing,
to
This should fix your first printf statement if the implicit conversion is a problem. If this fixes it for the first print statement then you'll also need to edit similar statements to be of the same form.
edit:
Change it for all of your Total_Cost_* = EvaluateHouse(houseid) (in CalculateMillLevy) assignments before testing.
pawn Код:
Total_Cost_LV += EvaluateHouse(houseid);
pawn Код:
Total_Cost_LV += float(EvaluateHouse(houseid));
edit:
Change it for all of your Total_Cost_* = EvaluateHouse(houseid) (in CalculateMillLevy) assignments before testing.