Skip to content
← Back to Community
I cant call the a function inside a function
Profile icon
ColePayneSexton

Im trying to when the user "wins" the game it brings them back to a menu (the first function) but when i get to that part it pulls an error saying that that string is uncallable

Answered by Wumi4 [earned 5 cycles]
View Answer
Voters
Profile icon
ColePayneSexton
Comments
hotnewtop
Profile icon
Wumi4

It's because you are defining the same name where for two different type: A function and a input. Basically rename one of those will fix the error.

Profile icon
ColePayneSexton

Thank you @Wumi4 that fixed the program, i didnt know having a function and a variable with the same name would do that. Wont make that mistake again

Profile icon
ColePayneSexton

I put a comment here by mistake but i cannot delete this