1lann, on 03 April 2014 - 03:00 AM, said:
You're currently returning "read" as a function in your prompt function, you need to call it with "read()" to get the value of the read input. So it should be "return read()"
Uh, sorry about that... I typed this up kinda fast. Must have missed it.
theoriginalbit, on 03 April 2014 - 03:01 AM, said:
os.loadAPI requires a string for the path you wish to load. so add quotes around testapi in the loadAPI call.
also it should be noted that return is not a function, you do not need to add brackets there.
1lann, on 03 April 2014 - 03:00 AM, said:
You're currently returning "read" as a function in your prompt function, you need to call it with "read()" to get the value of the read input. So it should be "return read()"
that was in the 'before' not the 'after'
Thanks. I feel very stupid now

I need to start coding when I am more than half awake apparently. *facepalm*
edit: I have used os.loadAPI before so I really should have spotted that earlier.
EDIT #2: I now have only one problem, I cannot set multiple acceptable answers for some reason (eg. prompt("test", "hello" or "goodby"))
Edited by KingofGamesYami, 03 April 2014 - 03:17 AM.