my return value doesn't work even though it should

Started by CrazyTren on

Topic category: Troubleshooting, bugs, and solutions

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
my return value doesn't work even though it should

I don't know why this doesn't work but I have asked like every AI on how to fix it and they don't know, no tutorials help me or anything it's just super annoying. it just says "Procedure that uses return value must end with a valid return block"

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ai is horrible you have to…
Sun, 11/09/2025 - 10:19

ai is horrible

you have to upload pictures to a different website first to have them show here.

 

this is probably your problem, like it says your procedure has to have a return block at the end too

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah it's like the exact…
Sun, 11/09/2025 - 17:17

yeah it's like the exact same but I have the second return in the else

 

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It works, thank you so much…
Sun, 11/09/2025 - 17:40

It works, thank you so much I realized what the issue is