Title: Elevator code
Lets start by saying im new to lua coding, there may be many things i've done wrong in my code but i've tried my best. The problem i have is that when i run my program, it actually doesn't for reasons unknown to me. Please if you have time and are willing to help me (a noob) to find what i did wrong it will be very appreciated.
Code http://pastebin.com/K2mAGJF2
Elevator code
Started by subaru_k, May 17 2013 03:38 AM
2 replies to this topic
#1
Posted 17 May 2013 - 03:38 AM
#2
Posted 17 May 2013 - 08:47 AM
just had a quick look but the reason that its not working is that you not tell him to do sth.
you defined all the functions but you are not executing them
simply add
at the end of your code and it will do sth.
and in line 40 it should be
Line 20 should be this
Greets
Loki
you defined all the functions but you are not executing them
simply add
while true do main() sleep(1) end
at the end of your code and it will do sth.
and in line 40 it should be
print("Please Enter A Valid Floor Number") -- you had Print with capital P
Line 20 should be this
elseif input == "quit" then -- you had quit without " "
Greets
Loki
#3
Posted 17 May 2013 - 09:27 AM
Thank you very much for your help 
+kudos
+kudos
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











