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");
}
}
Put a little planning into this, and you might do well.
It thrills me to point out that this code you supposedly "fixed" is still wrong. I just took a closer look and this would not only give syntax errors, but would also do the same as the script below.
What about this. This would give you a time variance and the ability to save to a specific file name:
function AutoSave(%mins, %name)
{
savebuild(%name);
%minutes=%mins * 1000 * 60
schedule(%minutes,0,AutoSave);
}
This would save the build to ".blb" every 0 miliseconds after the first save.
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");
}
}
That won't work, it will give you a syntax error, good job, fix it. You need to TEST your scripts before you release them and you also need to ACTUALLY LEARN TO SCRIPT.
And YOU need to stop lurking around these forums waiting for a moment to "prove" how big your e-penor is. Its funny how the only mod you ever made was for player abuse, yet you're such a nice guy on the forums.