i'm trying to adjust a exp bar to represent how much more is needed to level up so i take "current exp (int var)" / "needed exp (int var)" and try to save it in a real var but it only save 0!!! going nuts over this, i would understand if the variable i saved it was a int but its a real. why cant i save a value like 0.65 in it?
i'm trying to adjust a exp bar to represent how much more is needed to level up so i take "current exp (int var)" / "needed exp (int var)" and try to save it in a real var but it only save 0!!! going nuts over this, i would understand if the variable i saved it was a int but its a real. why cant i save a value like 0.65 in it?
You need to convert one to be a real value manually. Else, the system will always use the integer math when 2 integers are used.
edit:
Blizzpost about that.
Seems like they didn't change anything or didn't you use arithmetic (real)?
i converted integer to real for each value i added and now it works :) stupid :D