Blockland Forums > General Discussion
Server passwords
<< < (6/6)
Chrono:

--- Quote from: MegaScientifical on September 09, 2010, 09:28:47 PM ---Uhh... And you can do the exact same thing with the default function I showed you, actually.

--- End quote ---
You can do the same thing, yes. Class based functions will work better than doing if stuff for classes. Sure takes up a couple of more bytes on your hard drive but it's convenient for modding and works more efficiently. Take a look at JVS. It doesn't cram everything into 1 function. It has like, billions. This way you aren't checking for everything at once, which is less stress.

Either way. It's pointless to fix, because it works smoothly.
MegaScientifical:

--- Quote from: Chrono on September 09, 2010, 09:35:50 PM ---You can do the same thing, yes. Class based functions will work better than doing if stuff for classes. Sure takes up a couple of more bytes on your hard drive but it's convenient for modding and works more efficiently. Take a look at JVS. It doesn't cram everything into 1 function. It has like, billions. This way you aren't checking for everything at once, which is less stress.

Either way. It's pointless to fix, because it works smoothly.

--- End quote ---

I don't understand. This default code works on both types of connections, returns the numbers, and I gave the pass check in a shorter fashion. I get you might like longer code, I've done that before, but for functionality. I'm offering the same functionality in a shorter package. I'd rather not make whole new functions when the exact same thing can be done in a shorter manner.

Either way, I also added an announcement for IP in there if they do get in.
Chrono:

--- Quote from: MegaScientifical on September 09, 2010, 09:41:26 PM ---I don't understand. This default code works on both types of connections, returns the numbers, and I gave the pass check in a shorter fashion. I get you might like longer code, I've done that before, but for functionality. I'm offering the same functionality in a shorter package. I'd rather not make whole new functions when the exact same thing can be done in a shorter manner.

Either way, I also added an announcement for IP in there if they do get in.

--- End quote ---
It does work on both types, however, what it's lacking is the respective class functions.
The pass check is the exact same.
It's not a shorter package.
Mine prevents without the return. With the return, you sometimes get to see a line of text if you join a server while banned, which could work the same in this case.
And wow, yours uses another check just like mine. Just default, though that doesn't make a difference.
I was also planning on rewriting mine just to be a tad more efficient. Sticking the check within the If, which actually makes mine a much shorter package, and to prevent instantly.
I've already given my reason for leaving out the announcements.
Navigation
Message Index
Previous page

Go to full version