What do I type to get this to work?

Author Topic: What do I type to get this to work?  (Read 1571 times)

Code: [Select]
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");
     }
}

AutoSave(%name, %minutes, %load, %cancel); into the console.

OR

You could put it into a serverCmd, like this (if I'm thinking right):
Code: [Select]
function serverCmdautosave(%client)
{
   AutoSave(%name, %minutes, %load, %cancel);
}

I might have a little bit wrong in there, someone will be able to tell you better than me.
« Last Edit: February 25, 2008, 07:56:44 PM by LegoEggo »

Or just add the serverCmd part.

Quote
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");
 }
}
Theres your problem... semi colons in the wrong place!
Btw lego  I bet this is client side, so that wouldnt work. Also its just Autosave, not function autosave when your calling it.

Falcondude: Well, if you're going to use it, you kinda HAVE to add it...
Rky: Yeah, that's what I was wondering, if it was clientside or not. And thanks for that, I wasn't sure if it was function at the first still or not. I shall edit my post.

Nah, from what I see, this would be something you put on your own server, so it'd work fine in the console.

For ease of use, though, yes.

Unless you were building on someone else's server, which, believe it or not, SOME people do quite a bit... [/sarcastic]

Yeah, but you can't always load on their servers.

Seeing how this has a line that says loadBricks(%name)...

Yeah, but you can't always load on their servers.

Seeing how this has a line that says loadBricks(%name)...
Ever head of being an ADMIN?

Yeah, but you can't always load on their servers.

Seeing how this has a line that says loadBricks(%name)...

Lawl @ completely handicapped argument.

Ugh...


Loadbricks & Savebricks= clientside commands = why Badspot wont make save protection(I think)

the line that says LoadBricks is for if you load. To keep you from overwriting untill its loaded. I think.
Also the host couldnt loadbricks if he/she/it/wtf weren't admin.


The code is entirely clientside.


Loadbricks & Savebricks= clientside commands = why Badspot wont make save protection(I think)

Wrong. Save Protection is a totally handicapped concept - If you don't want people saving your builds then don't host it multiplayer, just put it in the gallery. The only reason he hasn't made save protection is because it would take away so much of the experience of Blockland.

Listen up noobs, saving is here to stay.  If you can't handle someone else playing with your build, grow the hell up.

If you start doing gay ice cream to break my game, I'm going to start banning you from the master server.  This is a war you don't want to start because I'm the only one with nukes. 
« Last Edit: February 26, 2008, 07:50:17 AM by tails »