WowMan2
|
  |
| Joined: 09 Feb 2009 |
| Total Posts: 20610 |
|
|
| 03 Jan 2012 10:32 AM |
I am learning functions right now on it, and I am on Using Return. I copied the whole example script into a script on RS and I wanted to see what happens before I try learning it. When I clicked Play, this message appears: 'end' expected (to close 'function' at line 1) near 'print'
This is the entire script it gives below. Also, I took out the Output part of it from inserting it into the script.
function add(num1, num2) print("Finding sum.") return num1 + num2 print("Sum found") end
x = Add(5, 2) print(x)
Output: Finding sum. 7
Is this an error on the Wiki or is it me? |
|
|
| Report Abuse |
|
|
lasmore12
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 14389 |
|
|
| 03 Jan 2012 10:32 AM |
| YOU HAVE CONFUSED AND ANGERED THE LINCOLN! |
|
|
| Report Abuse |
|
|
sadredas
|
  |
| Joined: 18 Dec 2008 |
| Total Posts: 498 |
|
|
| 03 Jan 2012 10:33 AM |
| It`syou mai boi. Not that section. |
|
|
| Report Abuse |
|
|
WowMan2
|
  |
| Joined: 09 Feb 2009 |
| Total Posts: 20610 |
|
|
| 03 Jan 2012 10:33 AM |
| If it is me, than how do I fix it? |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2012 10:34 AM |
| ROBLOX WIKI IS AN ERROR IN ITSELF |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2012 10:34 AM |
| Maybe error, just you, or you copied it wrong. Idk. |
|
|
| Report Abuse |
|
|