I recently tried to add a timer that would restart the computer after so many seconds but when adding it to my scrolling text program it gives me: "bios:206: [string "Rules"]:52: '=' expected" But I do not see the problem its pointing me to. Also the text that I want to stay at the top while the rest scrolls does not stay. Here is the code:
os.startTimer(75)
print("Banned That Stays At The Top")
local tBanned = {
"Hyper Kinetic Lens",
"Red Matter Furnace",
"Volcanite Amulet",
"Black Hole Chest",
"Mercurial Eye",
"Black Hole Band",
"Watch of Flowing Time",
"Evertide Amulet",
"Nova Catalyst",
"Wireless Tracker",
"Destruction Catalyst",
"Wireless Transceiver",
"Wireless Sniffer",
"Wireless Remote",
"Wireless Map",
"World Anchor",
"Rings Of Arcana",
"Nova Cataclysm",
"Gem Armor",
"Void Ring",
"Nukes, TNT, ITNT, Dynamite, Sticky Dynamite",
"Alchemical Tome",
"DarkMatter Pedestal",
"Teleport Tether",
"REP",
"Mining Laser",
"Crafting Bench 3",
"All Energy Collectors",
"Gas Jetpacks",
"Block Breaker",
"Terraformer",
"Alarms",
"RM Tools",
"DM Tools",
"Philosopher's Stone"
}
while true do
for i, sBanned in ipairs(tBanned) do
sleep(1)
local w, h = term.getSize()
local x, y = term.getCursorPos()
x = math.max(math.floor((w / 2) - (#sBanned / 2)),0)
term.setCursorPos(x + 1,y)
print(sBanned)
print("--------------------BLOCKED--------------------")
local r = os.pullEvent()
if r == "timer" then
os.reboot
break
end
end
end