Oh, I know what's causing trouble.
I missed that part in the first screenshot.
Weird Dragon was almost right on top of it.
You mixed script_execute(script_name, arguments, ...) and script_name(arguments, ...) up to an extent that confused yourself.
Again, the screenshot you posted this time is again misleading as it again doesn't show the place the error is thrown.
The error starts by this line:
Code:
script_execute(scr_generate_block(argument0[i, j], new_x + scale * i, new_y + scale * j));
in scr_build_level.
You probably meant to use either:
Code:
scr_generate_block(argument0[i, j], new_x + scale * i, new_y + scale * j);
or:
Code:
script_execute(scr_generate_block, argument0[i, j], new_x + scale * i, new_y + scale * j);
However, by mixing those up, you correctly execute scr_generate_block, but then you take its result (which is 0 by default)
as only argument for the script_execute, executing the first script in your asset tree, which happens to be scr_create_room.
However, as you don't pass any other arguments to script_execute, the arguments for scr_create_room are set to undefined, resulting in your error message.
The solution?
Follow the advice of Weird Dragon and FrostyCat.