#Error: Dividing a table (should be int) by a number
1 messages · Page 1 of 1 (latest)
when you defined the function you used a . dot
but when calling it your using a colon :
so your passing in self in place of substep
how did i mess that up lmao
the weird thing is this wasnt happening before like an hour ago (i had to do stuff but came back)
but this should not crash studio i have no idea why studio is crashing
i remember earlier in the video you specified that you were using a dot instead of a colon or something but i forgot that it actually mattered
i tried printing it with 0.1 so maybe that was too low or i might be messing up something else possibly
but thank you
ok yeah no error now thanks
im so cooked its happening again but im defining them both with a colon
use the error message to findout who called the function
then make sure the module who called it called it correctly
the error message will show you what happened before the error if you click on the links
only thing they took me too that wasnt screenshotted was just spawning the tower
(ive just been using 1 enemy and 1 tower)
my only guess is that i did something wrong with the path distances table so im gonna go over the video to make sure its right
this line of code is wrong but im still getting an error but its showing a third blue line to click on now
oh wait i see my error