ID:145909
 
I think one or more of those variables is text ("12345") rather than a number(12345).
In response to Jon88
Nope.

mob/var
//Body Stats
race = ""
age = 0
weight = 0
height = 0
waist = 0
factor1 = 0
factor2 = 0
leanmass = 0
bodyfat = 0
fatpercent = 0
In response to Plagu3r
Just because everything looks fine in the definition doesn't mean the values weren't changed at some other place. Where are the values changed elsewhere? How about some debug output?
In response to tenkuu
Did you even read the whole post? Maybe you should go back and check the first section of the thread.
In response to Plagu3r
Yeah I did and I responded. I was hoping you'd process what I wrote and figure out to check where the value of weight changes.

That includes when a character is loaded or created. It could be something you weren't expecting.

And what about debug output? Use it everywhere if you're stumped about weird errors. It'll reveal a ton of useful information.

Check to see if weight is a number or something else that can't be used in a mathematical operation.
In response to tenkuu
Ahhh, I get what you mean now. My fault, stupid error. I need to think a bit more. =/