SOLVED DoAdd :2: undefined value

late77

Member
I'm doing for loop to generate a borderless terrain. There appears problem for some reason in ending_room variable. I have not heard about something about what is that error and would appreciate if someone of this forum could help how to get rid of that.
1612277628995.png
 

gnysek

Member
You can't use argument0 outside of function. Above code is now in general scope, and is performed at start of game (probably even before GameStart event). As such, argument0 is not known as variable in this context.

You probably want to convert it into function.
 
your code is outside your commented out function...
I think the error message tries to tell you this is not the way to create macros.
 
Top