Random Compiler Error

Started by margusutivus on

Topic category: Help with MCreator software

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Random Compiler Error
Fri, 12/11/2020 - 03:07 (edited)

Hey there ya'll, I started working on a new mod today and after I created a few procedures and one dimension, I started getting a compiler error. I used the console to check for bugs and error description and I sorta came up empty. I ended up copying my workspace by hand in a new workspace but I got the same error. I went through and double checked all of my procedure blocks and variables and such but I still couldn't find what was going wrong. I included screenshots of what I made and the error message I was getting in case someone who comes upon this can point out what I did wrong (keep in mind I'm really new to the software so my procedure setups are definitely beyond the pale, sorry 'bout that lol)

 

https://pdfhost.io/v/56TFj9h.f_comp_error_imagespdf.pdf

 

Edited by margusutivus on Fri, 12/11/2020 - 03:07
MCreator does not handle…
Fri, 12/11/2020 - 09:12

MCreator does not handle well return statements with else blocks. Instead of using else, put all from else outside if as it will act same as else and compile properly.