Blockland Files > Add-Ons
Advanced Rules
<< < (10/19) > >>
Dyed Brownie:
How come I've already suggested almost everything that could make this mod better in the thread, yet you guys ignore it and post it again? Read my above quotes on the page 3.

Edit: I got new page owned.
Space Guy:
I was trying to put it in a clearer format that Gikon might be able to implement as code easier.

"make it do server/config"
"Make it write a default file if base/config/server/rules.txt doesn't exist,  and load from that file."
M:
And because I'm feeling even nicer, and rather bored, and because I was just writing this very thing five minutes ago...

--- Code: ---if(!isFile("config/server/rules.txt")
{
%FO = new FileObject();
%FO.openForWrite("config/server/rules.txt");
%FO.writeline("1. No asking for admin");
%FO.writeline("2. No spam");
%FO.writeline("3. No Event spam");
%FO.writeline("4. Play nice!");
%FO.writeline("5. Have fun!");
%FO.close();
%FO.delete();
}

--- End code ---

And thanks to me making this post I even fixed a typo I made... (wrong filetype between the file check and opening it >.>)
NiXiLL:

--- Quote from: M on August 15, 2008, 11:24:37 AM ---And because I'm feeling even nicer, and rather bored, and because I was just writing this very thing five minutes ago...

--- Code: ---if(!isFile("config/server/rules.txt")
{
%FO = new FileObject();
%FO.openForWrite("config/server/rules.txt");
%FO.writeline("1. No asking for admin");
%FO.writeline("2. No spam");
%FO.writeline("3. No Event spam");
%FO.writeline("4. Play nice!");
%FO.writeline("5. Have fun!");
%FO.close();
%FO.delete();
}

--- End code ---

And thanks to me making this post I even fixed a typo I made... (wrong filetype between the file check and opening it >.>)

--- End quote ---

--- Code: ---if(!isFile("config/server/rules.txt"))
{
%FO = new FileObject();
%FO.openForWrite("config/server/rules.txt");
%FO.writeline("1. No asking for admin");
%FO.writeline("2. No spam");
%FO.writeline("3. No Event spam");
%FO.writeline("4. Play nice!");
%FO.writeline("5. Have fun!");
%FO.close();
%FO.delete();
}

--- End code ---
You still have a typo.
Legent:
Oh lol  :cookieMonster:
But nice made :D
Navigation
Message Index
Next page
Previous page

Go to full version