Posted 04 August 2012 - 10:29 PM
Hey :P/>/> I have a program that runs on startup, to display some info as follows
repeat
print("yada")
sleep(0.3)
print("lol")
x=3
until x==10
for example ;)/>/> i can use monitor front startup, but i would like the program to display into the monitor directly when the pc starts, so that i dont have to manually run the monitor after the server is restarted, so the connection to the monitor has to be inbuilt in the startup program..but why
i have this at top (before the repeat line):
local mon = peripheral.wrap("front")
if not mon then
print("error")
else
mon.clear()
end
and i tried replacing the print("yada") lines, to mon.write("yada") for example, but it only writes the first line, only executes what is before the sleep(0.3) :(/>/> Anyone can help me at this?
repeat
print("yada")
sleep(0.3)
print("lol")
x=3
until x==10
for example ;)/>/> i can use monitor front startup, but i would like the program to display into the monitor directly when the pc starts, so that i dont have to manually run the monitor after the server is restarted, so the connection to the monitor has to be inbuilt in the startup program..but why
i have this at top (before the repeat line):
local mon = peripheral.wrap("front")
if not mon then
print("error")
else
mon.clear()
end
and i tried replacing the print("yada") lines, to mon.write("yada") for example, but it only writes the first line, only executes what is before the sleep(0.3) :(/>/> Anyone can help me at this?