This is my code i don’t know whats wrong with it i just started lua like yesterday and i came up with this program!
It’s a good program just i’m getting ‘end’ expected (to close ‘if’ at line 8) near ‘<eof>’ Error… When i try to run it.
Here is the code.
function wait(waitTime)
local timer = os.time()
repeat until os.time() > timer + waitTime
end
print(“Do you want to open Minecraft, FTB or Technic?”)
input = io.read()
if input == “FTB” then
print(“Opening FTB!”)
os.execute(“E:\FTB\FTB_Launcher.jar”)
wait(1)
elseif input == "Minecraft"then
print(“Opening Minecraft!”)
os.execute(“Minecraft”)
wait(1)
elseif input == “Technic” then
print(“Opening Technic!”)
os.execute(“E:\Tekkit\TechnicLauncher.exe”)
wait(1)
–Yes ik this may look… A bit… yea…
elseif input == “Secret” then
print(“Password”)
password = topassword(io.read())
if password == “Selena” then
os.execute(“E:\Lua\Progams\data\Data”)
print(“Good choice”)
wait(1)
else
print(“That is not a registered program”)
wait(2)
end
Like i said i’m new to this. So if its obvious. sorry D: