___________________________________________ ERROR in action number 1 of Draw Event for object control: Error in function log10().
log10()
Started by Taizen Chisou, Aug 09 2012 07:42 PM
6 replies to this topic
#1
Posted 09 August 2012 - 07:42 PM
^^
#2
Posted 09 August 2012 - 07:45 PM
Maybe you are passing negative values. Or zero. There's certainly not enough information to help you.
#3
Posted 09 August 2012 - 07:48 PM
Er, no, I just loaded up an old .gm6 into a just-bought 8.1 to check for compatibility and I ended up with this.
Edit: Replacing it with logn doesn't work either.
Edit: Replacing it with logn doesn't work either.
Edited by Taizen Chisou, 09 August 2012 - 07:49 PM.
#4
Posted 09 August 2012 - 07:49 PM
Well, what are you taking the log of? Mathematically it's defined for all positive values of x, but GM also has a maximum limit somewhere.
#5
Posted 09 August 2012 - 07:50 PM
A variable referred to in game as 'showpoints,' which is always a positive integer.
Edit:
Showpoints is always a positive integer bound within 0 to 9,999,999.
Edit:
Showpoints is always a positive integer bound within 0 to 9,999,999.
Edited by Taizen Chisou, 09 August 2012 - 07:53 PM.
#6
Posted 09 August 2012 - 08:20 PM
Showpoints is always a positive integer bound within 0 to 9,999,999.
I'm not completely sure how this worked fine in GM6, but you could make a 'wrapper' script like this:Maybe you are passing negative values. Or zero.
if argument0 > 0 return log10(argument0) else return 0
#7
Posted 09 August 2012 - 08:39 PM
...I went and made my own log script that returned how many iterations of arg0 / arg1 passed before arg0 < arg1 >_>
So... log(0) worked in GM6, but not in GM8.
Sure then, let's go with that.
So... log(0) worked in GM6, but not in GM8.
Sure then, let's go with that.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











