4erfourer
|
  |
| Joined: 12 Jan 2008 |
| Total Posts: 10841 |
|
|
| 01 Nov 2013 09:43 PM |
private function Bad() { break; }
|
|
|
| Report Abuse |
|
|
4erfourer
|
  |
| Joined: 12 Jan 2008 |
| Total Posts: 10841 |
|
|
| 01 Nov 2013 09:45 PM |
Also:
Object StarWars(int episode){ if(episode ==6)
return Jedi; } |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2013 09:46 PM |
Nope... Lua is a lot simpler than other languages. It does not require semi-colons or type declarations. Here's a quite example:
function derp(argument) print(arguments) end
derp("Hello World!")
Here's a great resource to get started on Lua (just scan through it, you shouldn't need to read it all): http://wiki.roblox.com/index.php/Absolute_beginner%27s_guide_to_scripting
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
|
| 01 Nov 2013 09:46 PM |
I don't think so Either you're really bad at scripting or really good because I have no idea what you're doing |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2013 09:46 PM |
| was the name change worth 1k billy ;) |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2013 09:46 PM |
Oh I forgot to mention, Lua is also not object-orientated.
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2013 09:47 PM |
@janthran I think he's just coming from using a program language like Java or something.
@PRESTIGIOUSaLEGEND Yup, I've hated that name for a long time.
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
|
| 01 Nov 2013 09:48 PM |
| I think your namechange was worth it |
|
|
| Report Abuse |
|
|
4erfourer
|
  |
| Joined: 12 Jan 2008 |
| Total Posts: 10841 |
|
|
| 01 Nov 2013 09:49 PM |
References have not been understood... ----------------------- private function Bad() { break; }
--------------- function Bad()
break
----------------
Bad break
------------
breaking bad |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2013 09:50 PM |
Oh sweet Jesus
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
4erfourer
|
  |
| Joined: 12 Jan 2008 |
| Total Posts: 10841 |
|
|
| 01 Nov 2013 09:50 PM |
| Sorry I didn't realize how serious this forum is. :P |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2013 09:51 PM |
Naw, that was a sarcastic "Oh sweet Jesus"... that was actually pretty good XD Anyways, do you need some help, or just wanted to make a joke?
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
| |
|
|
| 01 Nov 2013 09:52 PM |
@janthran Yes it is. For example:
while (wait()) do break end
print("Wat")
The break will get your out of the loop, instantly printing "Wat"
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
4erfourer
|
  |
| Joined: 12 Jan 2008 |
| Total Posts: 10841 |
|
|
| 01 Nov 2013 09:52 PM |
| I was just trying to get a joke across. Sorry about wasting your time :/ |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2013 09:53 PM |
@4erfourer It's no problem lol
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
4erfourer
|
  |
| Joined: 12 Jan 2008 |
| Total Posts: 10841 |
|
|
| 01 Nov 2013 09:54 PM |
cout << "Say my name."; getline(cin, name); if(name == "Heisenberg"){ you.status = GOD_DAM_RIGHT; } |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2013 09:56 PM |
well u c... dats nice
Not "Well, you see... that's nice" But "Well, you C (as in the programming language)... that's nice"
Yeah... heh.....
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|