Code:
STRING* endfile = "#10";

function leveload(STRING *filename)
{
	str_cpy(endfile, filename);
	str_cat(endfile, ".wmb");
	level_load(endfile);
	wait(2);
}


function something()
{
	[...]
	leveload("filename without extention");
	wait_for(leveload);
	[...]
}




Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<