Thanks that helped a lot. I'm still getting an odd return though. I'm trying to return a value for the price of an item in the market. It seems to only return a null value. Here's a piece of the code.
function price (number)
....
while ${i:Inc} <= ${OrdersCount}
echo ${Orders.Get[${k}].Price}
return ${Math.Calc[${Orders.Get[${k}].Price}]}
}
function main ()
}
call price ${number}
echo ${return}
}
I've tried a few wayt to return it, like saving it as a float and sending it back to another float but they always return null or 0.00000. If anyone could shine some light onto what I'm doing wrong I would be very greatful