learn-gdscript
learn-gdscript copied to clipboard
The Error Menu doesn't contain info for a specific type of error.
This is about an error message(that error explainer thing) So I was doing one of the practices and I wrote this:
func roll_dice(sides): var result This gave an error -------> randi() = result # I fixed this, the problem was that it has to be result = randi() as it right now means assign the value of result to randi() (how would it have done that lol XD), well atleast I helped some guy out :) result %= sides + 1 return result
So I checked what the error was but it said you guys haven't covered this yet, so I posted this to let you guys know this is a thing.
Screenshot(s):