#Error: Dividing a table (should be int) by a number

1 messages · Page 1 of 1 (latest)

trail iron
#

For some reason, the subStep parameter is considered a table. When the code printed, it printed the self of Path first and then 100

surreal cargo
#

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

trail iron
#

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)

surreal cargo
#

but this should not crash studio i have no idea why studio is crashing

trail iron
#

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

trail iron
#

but thank you

#

ok yeah no error now thanks

surreal cargo
trail iron
#

im so cooked its happening again but im defining them both with a colon

surreal cargo
#

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

trail iron
#

this part?

#

clicking on red text just takes me to line 23

surreal cargo
#

yes

#

click on all them links to see what happened before

trail iron
#

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