Come on, Jookia you aren't helping yourself. Make something, test it til it works, THEN release.
Here's a fixed version of the previous code. Whether Jookia's code works or not, harass him. But at least now the code itself is correct.
function AutoSave(%name,%minutes,%load,%cancel);
{
if(%cancel $= "cancel")
{
cancel($AutoSave);
}
else if(%load $= "load")
{
loadbricks(%name);
}
else
{
schedule(%minutes @ "000,savebuild," @ %name);
$AutoSave= schedule(%minutes @ "000,AutoSave");
}
}
I think you're trying to do too much in one function. Take out the load part all together, it's easier to load from the ESC menu than to type all that in. Also, just make the cancel a separate function. The AutoSave should be just that, a function that automatically saves your work every few minutes. Beside, it might even be easier if you're having users type in commands to just have them type in 'cancel($AutoSave);'. Put a little planning into this, and you might do well.