Author Topic: Making script admin-only?  (Read 10026 times)

As functions grow and become more layered (and line lengths may become longer), it would be much more advantageous to have brackets on separate lines.

Referring to use of brackets on the same line as other things:
Wiki Link: http://en.wikipedia.org/wiki/Indent_style#K.26R_style

Quote from: Wiki
Advantages of this style are that the beginning brace does not require an extra line by itself; and the ending brace lines up with the statement it conceptually belongs to. One disadvantage of this style is that the ending brace of a block takes up an entire line by itself, which can be partially resolved in if/else blocks and do/while blocks:

Code: [Select]
if (x < 0) {
    printf("Negative");
    negative(x);
} else {
    printf("Positive");
    positive(x);
}

This style makes it difficult to scan any source code for the opening brace of a block; however, it is otherwise as easy to find the beginning of the block by locating first line where the block 'pulls left' (where the indentation level decreases).

lol ur cool!!!

Someone who earns money through knowing how to program well. Who are you?



I hope this stupid troll gets banned soon.

I hope this stupid troll gets banned soon.

? What did I ever do wrong??? You still havent told me or prooven to me your can code well. so?

I hope this stupid troll gets banned soon.

QFT.

Hey waffles, can you say B-B-B-BANHAMMER!!!!!

still waiting for reply from ephi if/to prove he works for real on programming HUH?

still waiting for reply from ephi if/to prove he works for real on programming HUH?
Go into the Add-ons section and look for something by Ephi. Then stfu.

I'm a freelance web programmer, i'd let you see my transaction log on PayPal, but I don't see why I have to prove anything to a troll like you.

still waiting for reply from ephi if/to prove he works for real on programming HUH?

I'd like to see you make something as big and advanced as RTB, which Ephi is a developer of.

Meanwhile me and Space Guy who program properly have been able to release reliable and fully working mods.
There, fixed.
There are a lot of bugs in space guys addons.

Ephialtes, you sound like you need a break from the forums.  You complain about trolls left and right, and yet, you trolled this thread yourself.  It's one thing to correct someone who gets a fact wrong, but it's a very different story to pick apart style issues in someone else's post.  The syntax and content of Falcondude's reply was correct.  Your post completely derailed the topic.

I'm a freelance web programmer, i'd let you see my transaction log on PayPal, but I don't see why I have to prove anything to a troll like you.

prove it?

thanks for support Bluegreen

I'm a freelance web programmer, i'd let you see my transaction log on PayPal, but I don't see why I have to prove anything to a troll like you.

prove it?


spation broke the image.

Ephialtes, you sound like you need a break from the forums.  You complain about trolls left and right, and yet, you trolled this thread yourself.  It's one thing to correct someone who gets a fact wrong, but it's a very different story to pick apart style issues in someone else's post.  The syntax and content of Falcondude's reply was correct.  Your post completely derailed the topic.

I haven't trolled this thread at all, the answer to the topic was already posted, the problem was solved, the author did not complain, it is an informational topic. I never said the content or syntax of Falcondude's reply was wrong, I was commenting on the style he uses to script. I know from experience that a lot of professional companies require you to program in one style, and it will almost certainly be the one I've described. So think of it as a favor of sorts. If people break the habit now and go into programming, they'll be much better off.

Its also interesting to note that you didn't even comment on the obvious troll in this thread?