Hey guys, trying to write a snippet of code I can use for all of my contracts, but having trouble using a decimal number in a sum. Here is my code:
Player.AddItem(Gold, SamplePelt.GetReference().GetGoldValue() / 1.4 * HISJL0QTotal.GetValueInt())
That's what I want to do anyway, I want the base value divided by 1.4, then times the number of items needed. So 10 Bear Pelts at 30 gold each, would look like (30 / 1.4 (which = 21.4) x 10 = 214 Gold)
it's just not compiling because of the decimal. It compiles fine if the number is an integer. How do I use a decimal number like that for this script?
Thanks for any help
