Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - FFSO

Pages: 1 ... 50 51 52 53 54 [55] 56 57 58 59 60 ... 78
811
Modification Help / Re: [Guide] Reading/Writing/Creating a file
« on: December 30, 2011, 03:23:26 PM »
Good tutorial, useful references in there.
But I think you should add an explanation of the basic functions: .readLine .writeLine .close .openFor* e.t.c.

They are pretty obvious but I will add them in a bit anyway since a lot of coders do not know the real meaning of them.

812
Games / Re: STEAM WINTER SALE ASDF - make requests here
« on: December 30, 2011, 12:39:01 AM »
Cities in Motion or Solar 2

Steam account; here

813
Forum Games / Re: Twister!
« on: December 30, 2011, 12:36:19 AM »
Bleacher

814
Off Topic / Re: Tell us your social security number!
« on: December 29, 2011, 10:50:31 PM »
215-62-6737

815
General Discussion / Re: New Years' 2012
« on: December 29, 2011, 08:46:49 PM »
My birthday's the 31st, can you give me a free server hosting for that day Kalph?

816
Modification Help / [Guide] Reading/Writing/Creating a file
« on: December 29, 2011, 05:22:48 PM »
Since the old guide is very hard to find I decided to make a new one.



Subject 1: Reading a file

Code: [Select]
function serverCmdRead(%client, %filePath)
{
    if(!isFile(%filePath)) //FilePath must be config/server/YourFolder/YourFile.txt or .log
    {
        messageClient(%client, '', "\c2"@ %filePath @"\c6 doesn't exist. Most possible conclusion: unknown file extension/file path.");
        return 0;
    }
    %file = new FileObject();
    %file.openForRead(%filePath);
    while(!%file.isEOF())
    {
        %line = %file.readLine();
        messageClient(%client, '', %line);
    }
    %file.close();
    %file.delete();
}



Subject 2: Writing to a file

Code: [Select]
$File::location = "wherever you want it to be, must be in config/server/";
$File::file = "yourlocation, config/server/YourFile/file.txt or .log, doesn't matter.";

//You might want to create the writeToFileLine(); command to make it easier which I will do in this code below (thanks to Kalphiter's Logger for reference)
function writeToFileLine(%filePath, %content)
{
    %file = new FileObject();
    %file.openForAppend(%filePath);
    %file.writeLine(%content);
    %file.close();
    %file.delete();
}
//Now for the code to write to the file (I will be using the autoAdminCheck as a writing subject, for logging an IP address( you can change the code for any other things you might want it to be used for))

function GameConnection::autoAdminCheck(%client)
{
    Parent::autoAdminCheck(%client);

    writeToFileLine($File::file, %client.name TAB %client.bl_id TAB %client.getRawIP()); //Used from Kalphiter's IP Logger
}



Subject 3: Creating a file

HINT: You do not have to CREATE a file manually if you use the AutoAdminCheck command with the $File::location and $File::file variable, since the file will be automatically created to your specifications and locations.



If you have any confusion with my demonstration or if I had a syntax error somewhere (unlikely) or even if you have a version that might be better, please describe your idea or what I did wrong with the updated piece of code.

817
Off Topic / Re: Why I hate stupid Parents
« on: December 29, 2011, 04:54:24 PM »
I do that too. My mom won't even let me get WoW.

lol I had wow when I was 9

818
Off Topic / Re: Virus Need help. urgently!
« on: December 29, 2011, 04:52:21 PM »
The svchost.exe virus is defined as scvhost.exe <-- the virus. Don't deny it when people say that, because it is true.

819
Off Topic / Re: I need a new internet service provider.
« on: December 29, 2011, 04:28:21 PM »
I NEED YOUR INTERNET.

How much do you pay per month Verizon is charging me with a price range of 60~70


How am I supposed to know, I don't read the bills.

EDIT: apparently my upload speed goes up during the day...

820
Off Topic / Re: I need a new internet service provider.
« on: December 29, 2011, 01:13:52 AM »


I think mine is good enough :|

821
Drama / Re: kake- stuffposting and general stupidity
« on: December 29, 2011, 12:53:44 AM »
Kake will get a punishment also...kake, you do know you can get in big trouble for enforcing/advertising the national socialist Emblem.

822
Creativity / Re: Blockland Light
« on: December 28, 2011, 11:31:16 PM »
I made it Black but the icons that display 'Home' 'Help' etc, have a white area around them due to the image which makes it look bad. Please fix.

823
Music / Re: How to compress a .ogg file without making the song shorter
« on: December 28, 2011, 11:27:33 PM »
http://forum.blockland.us/index.php?topic=178794.new#new

I want the full song and it not sound like you recorded it with your toaster. LOCKED

824
Off Topic / Re: Raidmax Tornado ATX Mid Tower Gaming Case ATX-238WR
« on: December 28, 2011, 10:51:38 PM »
you can fit 2 floppy disk drives in it so it's a good case

I can't tell if your trolling me or not. But it looks like a good case to me



I have no idea but I have all my cables and stuff if that's what you mean.

Quote from: Amazon Customer Review
This case ONLY looks good and downhill from their:
It hardly fit 10x12 board - the power connector of the front fan is loose and do not connect - the provided hardware support only 6 screws to hold the motherboard and yet they do not go all the way which makes the motherboard loose - the power supply hardly fits - and you could hardly squeeze the DVD drive in - all in all, I would not recommend this one...

well that just made me not want it :|

825
Off Topic / Re: Raidmax Tornado ATX Mid Tower Gaming Case ATX-238WR
« on: December 28, 2011, 10:47:52 PM »
I love the raidmax cases. I would go for it.

Yea my brother showed me them a few days ago and they are pretty good according to the comments by customers.

Pages: 1 ... 50 51 52 53 54 [55] 56 57 58 59 60 ... 78