Nov-27-2018, 08:35 PM
Assuming you have locale settings using a comma as a decimal separator, and you use str(function) in the final call to fix that type error, I am not getting a memory error. I'm guessing at what head should be, and I'm giving 3000 as speed, since that is an allowed value. Actually tried several apparent allowed values and noticed your conditionals are all messed up. They should probably be of the form (2142 <= Speed <= 2499). As it is, the first one is equivalent to Speed >= 2499. And since you are not using elifs, you are probably running the calculations multiple times.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures