Posted 18 March 2012 - 12:14 PM
hey, first of all i woud like to say that the mod is awsome
But i got a little problem i am just starting to learn lua and when i made my first little programm i came across a problem
it runned the programm like it is supposed to but i completly ignored my "print"
anyway here is the code:
local master = "michiel"
local password= "virus"
local x= "welcome to the system master"
term.clear()
print("who are you")
sleep(2)
local user = io.read()
if user ~= master then
print("u have no premision")
os.shutdown()
end
if user == master then
print("welcome")
sleep(2)
end
print("what is the password?")
local userpass = io.read()
if userpass ~= password then
print("good try but get of this computer")
os.shutdown()
if userpass == password then
print(x)
sleep(2)
end
end
it ignore's print("good try but get of this computer") and print(x)
ps: i know it is kinda messy but it is my first try with lua :D/>/>
with best regards michiel
But i got a little problem i am just starting to learn lua and when i made my first little programm i came across a problem
it runned the programm like it is supposed to but i completly ignored my "print"
anyway here is the code:
local master = "michiel"
local password= "virus"
local x= "welcome to the system master"
term.clear()
print("who are you")
sleep(2)
local user = io.read()
if user ~= master then
print("u have no premision")
os.shutdown()
end
if user == master then
print("welcome")
sleep(2)
end
print("what is the password?")
local userpass = io.read()
if userpass ~= password then
print("good try but get of this computer")
os.shutdown()
if userpass == password then
print(x)
sleep(2)
end
end
it ignore's print("good try but get of this computer") and print(x)
ps: i know it is kinda messy but it is my first try with lua :D/>/>
with best regards michiel