http://tbm.pastebin.com/f5f5b6387
(using pastebin since the forum would censor this mercilessly)

amend to the end of tbm/server/scripts/servercmd.cs

Edit- link code updated, heres the original if you're interested:
http://tbm.pastebin.com/f6d3c5098
Old image:
http://img139.imageshack.us/img139/2439/pic01201hx6.png
...how.. inspired of you.

And holy optimization Batman, use a for loop!
I have no idea how to use "for" effectively, as I lack the proper understanding of how it works. Come to think of it, this is probably the best place to ask, so: wtf is "for" for and how do I use it?
Quote:
For(X,1,100
LNUMBERS(X2
Ans->LRESULT(X
End


Not sure where the X goes - first or last, - but the command increases X from 1 to 100, or between two numbers you specify, which can also be variables.
some18kanal0n3 wrote:
Quote:
For(X,1,100
LNUMBERS(X2
Ans->LRESULT(X
End


Not sure where the X goes - first or last, - but the command increases X from 1 to 100, or between two numbers you specify, which can also be variables.

LOL he wasn't talking about Ti-basic if you notice this is the blockland subforum and I'm pretty sure block land won't run on a z80.
Haha, I know. I'm hoping it's the same idea Laughing
DShiznit wrote:
I have no idea how to use "for" effectively, as I lack the proper understanding of how it works. Come to think of it, this is probably the best place to ask, so: wtf is "for" for and how do I use it?


http://letmegooglethatforyou.com/?q=for+loop&l=1
O_o how long have you been programming without using loops?
I've used while loops, but that's it. I still don't understand completely how I'd use this in my script, but I now know the what a for is for, thanks. I should be able to figure something out.

Code:

%v[0] = shizgrid(2, 2);
%v[1] = shizgrid(2, 2);
 
%v[2] = shizgrid(2, 2);
%v[3] = shizgrid(2, 2);
 
%v[4] = shizgrid(4, 4);
%v[5] = shizgrid(4, 4);
%v[6] = shizgrid(4, 4);
%v[7] = shizgrid(4, 4);
 
%v[8] = shizgrid(4, 4);
%v[9] = shizgrid(4, 4);
%v[10] = shizgrid(4, 4);
%v[11] = shizgrid(4, 4);
 
%v[12] = shizgrid(6, 6);
%v[13] = shizgrid(6, 6);
%v[14] = shizgrid(6, 6);
%v[15] = shizgrid(6, 6);
%v[16] = shizgrid(6, 6);
%v[17] = shizgrid(6, 6);
%v[18] = shizgrid(6, 6);
%v[19] = shizgrid(6, 6);
 
%v[20] = shizgrid(6, 6);
%v[21] = shizgrid(6, 6);
%v[22] = shizgrid(6, 6);
%v[23] = shizgrid(6, 6);
%v[24] = shizgrid(6, 6);
%v[25] = shizgrid(6, 6);
%v[26] = shizgrid(6, 6);
%v[27] = shizgrid(6, 6);


I don't know this language, but I'll give it a go.

Code:

for(%a=0; %a < 28; %a++) {
%v[%a] = shizgrid(6, 6);
}
that would make all of the values called be from a 6x6 grid, which wouldn't create the exponentially increasing base I need. I could use a different "for" for each set of values I'm calling I suppose. It wouldn't even put a dent in the 300+ lines it takes up, but it's a start.
Oh, sorry, I didn't see the 2's and 4's. But yes, even if you broke it up, it would still significantly help your code. Plus, it's more readable imo when it's in a loop.
elfprince13 wrote:
O_o how long have you been programming without using loops?
I am too lazy to actually make my own post so instead I quote people and then don't say anything new
Holy crap I was actually able to apply for to the rest of the code, thanks everyone:
http://tbm.pastebin.com/f5f5b6387
As you can see, I made it only work for admins, unless a server pref is toggled, AND, it has a function for easily cleaning up all the shit(and only the shit) on your server, so it can no longer be used for spamming.

Quote:
I am too lazy to actually make my own post so instead I quote people and then don't say anything new

Isn't that technically saying something new, even if it's insubstantial?
DShiznit wrote:
Holy crap I was actually able to apply for to the rest of the code, thanks everyone:
http://tbm.pastebin.com/f5f5b6387
As you can see, I made it only work for admins, unless a server pref is toggled, AND, it has a function for easily cleaning up all the <font color=red>censored</font>(and only the <font color=red>censored</font>) on your server, so it can no longer be used for spamming.

Quote:
I am too lazy to actually make my own post so instead I quote people and then don't say anything new

Isn't that technically saying something new, even if it's insubstantial?
That's a site censor for QFT, also known as "quoted for truth" or "quoted for emphasis".
How do you spell emphasis with a "T"?
You can't.
then how can I am too lazy to actually make my own post so instead I quote people and then don't say anything new stand for "Quote For Emphasis"?

Semantics suck.
DShiznit wrote:
then how can I am too lazy to actually make my own post so instead I quote people and then don't say anything new stand for "Quote For Emphasis"?

Semantics suck.


it doesn't. nobody says QFE, they actually spell that out. QFT stands for Quoted for Truth
elfprince13 wrote:
DShiznit wrote:
then how can I am too lazy to actually make my own post so instead I quote people and then don't say anything new stand for "Quote For Emphasis"?

Semantics suck.


it doesn't. nobody says QFE, they actually spell that out. QFT stands for Quoted for Truth


I am too lazy to actually make my own post so instead I quote people and then don't say anything new
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement