|
| 22 Oct 2011 10:54 AM |
| Could someone give me an example on how to indent? :P |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 22 Oct 2011 11:01 AM |
local Value = 0 function Test() print("The value is... ".. Value) Value = Value+1 end while wait() do Test() if Value == 5 then print("Crashing") break else print("Running") end end
Can anyone re-write the code with indenting? |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2011 11:02 AM |
local Value = 0 function Test() print("The value is... ".. Value) Value = Value+1 end while wait() do Test() if Value == 5 then print("Crashing") break else print("Running") end end
won't let me tab so i spaced it :P
|
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 22 Oct 2011 11:02 AM |
Tab key (Located above the capital lock key) or if you wanted to tab in a post on the forums, you would use alt+255 (On num pad)
like this I Just 'tabbed' Isn't this awesome?
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 22 Oct 2011 11:03 AM |
local Value = 0 function Test() print("The value is... ".. Value) Value = Value+1 end while wait() do Test() if Value == 5 then print("Crashing") break else print("Running") end end
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2011 11:04 AM |
| XD nates showing off his tabbing skillz. |
|
|
| Report Abuse |
|
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 22 Oct 2011 11:06 AM |
local Value = 0 function Test() print("The value is... ".. Value) Value = Value+1 end while wait() do Test() if Value == 5 then print("Crashing") break else print("Running") end end
That's if spaces were compared to the amount of spaces that'd make up a tab (That make any sense?)
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 22 Oct 2011 11:18 AM |
^I was talking to myself.
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
| |
|