What is the mutliply symbol for Simba?
I want to make
Simba Code:XPGain := (CurrentXP - OriginalXP);
into
Simba Code:XPGain := ((CurrentXP - OriginalXP)*.85);
Assuming * is the multiply symbol.
What is the mutliply symbol for Simba?
I want to make
Simba Code:XPGain := (CurrentXP - OriginalXP);
into
Simba Code:XPGain := ((CurrentXP - OriginalXP)*.85);
Assuming * is the multiply symbol.
* is the multiply symbol.
So:
[SIMBA]XPGain := ((CurrentXP - OriginalXP) * 0.85);[SIMBA]
There used to be something meaningful here.
I get a type mismatch when i do that.
I'm not positive, but did you declare XPGain as an integer? You might need to declare it as an extended value so you can store decimal places because 0.85 is not always going to give you an integer answer when you multiply it by something else.
XPGain as integer or you need to Round it.
~Home
[SIMBA]XPGain := Round((CurrentXP - OriginalXP) * 0.85);[SIMBA]
Thanks guys, I had thought that but didn't know how to do it.
My ScriptsLittlePineWoodLittleHides
There are currently 1 users browsing this thread. (0 members and 1 guests)