Indentation

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

How do you indent when coding?

  • Tabs, ya bumb!

    Votes: 4 100.0%
  • Spaces, ya foo'!

    Votes: 0 0.0%
  • I suck and never indent.

    Votes: 0 0.0%

  • Total voters
    4

Smoke39

whatever
Jun 2, 2001
1,793
0
0
if ( stuf is so )
{
[tab] Do stuff;
}


or


if (stuff is so )
{
[two spaces] Do Stuf;
}
 

Postal

I apear to have lost my pin.
Nov 14, 1999
1,388
0
0
WoD.BeyondUnreal.com
Theres about 50 ways to set up code, at least somewhere around there, here for example:

If
{
blah
}
Else
Blah

If{
Blah}
Else Blah

If
{
Blah
}
Else
Blah

Each of those show several ways.
 

Smoke39

whatever
Jun 2, 2001
1,793
0
0
The first and last look the same.
I meant just the indentation, not placement of {s and }s and such.
 

Postal

I apear to have lost my pin.
Nov 14, 1999
1,388
0
0
WoD.BeyondUnreal.com
stupid forum!!!

Ie

If
{
blah
}
Else
Blah

{tab} If
{
{tab} blah
}
Else
{tab} Blah

If
{tab} {
{tab} blah
{tab} }
Else
{tab} Blah

(Yes I have seen that below)

If
{tab} {
blah
{tab} }
{tab} Else
Blah

I have heard even fist fights have broked out over proper spacing and indenting(Imagine weeking pale while nerd puching each other, and hurting their hands worse)
 

Smoke39

whatever
Jun 2, 2001
1,793
0
0
You must be refering to me. I haven't been acting very weird lately. Maybe I'm sick? Ah! I've got "normal-disease-osis!" Somebody help me!
 
Jun 12, 2001
409
0
0
www.planetunreal.com
Oh, great. A new error message. On top of my old favorites:

1. You forgot a ; on line 1395 of Reallybigfile.uc - Go put it in! Go on! Good dog!

2. You put an = instead of an ==, but instead of telling you that I'm giving you a stupid confusing error message about brackets being wrong or about left sign not fitting with right sign.

3. I'm going to tell you that you are missing a closebracket ) somewhere. But I'm not going to tell you where it was - instead I'll point you to the end of the .uc file, and watch you read through your entire Mechgun code to try and find it.