Posted 14 December 2012 - 09:13 PM
i am trying to make a scrolling monitor board that just wont seem to work, it gives me the error when i try to run it
"bios:206: [string "banned"]:75: unexpected symbol
This is my code
"bios:206: [string "banned"]:75: unexpected symbol
This is my code
– Terminate
os.pullEvent = os.pullEventRaw
– Varibles
– Reset Number
resetNum = 45
– Line Numbers
aa = 1
ab = 2
ac = 3
ad = 4
ae = 5
af = 6
ag = 7
ah = 8
ai = 9
aj = 10
ak = 11
al = 12
am = 13
an = 14
ao = 15
ap = 16
aq = 17
ar = 18
as = 19
at = 20
au = 21
av = 22
aw = 23
ax = 24
ay = 25
az = 26
ba = 27
bb = 28
bc = 29
bd = 30
be = 31
bf = 32
bg = 33
bh = 34
bi = 35
bj = 36
bk = 37
bl = 38
bm = 39
bn = 40
bo = 41
bp = 42
bq = 43
br = 44
bs = 45
– Items
da = "Disk Drive"
db = "Black Hole Chest"
dc = "Incinerator"
dd = "Duplicator"
de = "World Anchor"
df = "Computer"
dg = "Destruction Catalyst"
dh = "Soul Stone"
di = "Evertide Amulet"
dj = "Black Hole Band"
dk = "Ring of Ignition"
dl = "Archangel's Smite"
dm = "Hyperkinetic Lens"
dn = "Harvest Goddess Band"
do = "Dynamite"
dp = "Catalytic Lens"
dq = "Zero Ring"
dr = "Infernal Armor"
ds = "Abyss Helmet"
dt = "Gravity Greaves"
du = "Hurricane Boots"
dv = "Ring of Arcana"
dw = "Body Stone"
dx = "Life Stone"
dy = "Mind Stone"
dz = "Composite Vest"
ea = "Sticky Dynamite"
eb = "Mining Laser"
ec = "Void Ring"
ed = "Block Breaker"
ee = "Nova Catalyst"
ef = "Nova Cataclysm"
eg = "Cannon"
eh = "Forcefield"
ei = "Volcanite Amulet"
ej = "Mercurial Eye"
ek = "Gem of Eternal Density"
el = "Red Matter Armor"
em = "Quantum Chest"
en = "Boats"
eo = "Teleport Pipes
ep = "Crystal Chest"
eq = "Automatic Crafting Table MkII"
er = "Tank Cart"
es = "Enderpearl"
– Clear
function clear()
term.clear()
term.setCursorPos(1,1)
end
– cPrint
function cPrint(height, value)
local w, h = term.getSize()
local xpos = w/2 - string.len(value)/2
term.setCursorPos(xpos, height)
term.write(value)
end
– Code
while true do
clear()
local nTime = os.time()
cPrint(aa, da)
cPrint(ab, db)
cPrint(ac, dc)
cPrint(ad, dd)
cPrint(ae, de)
cPrint(af, df)
cPrint(ag, dg)
cPrint(ah, dh)
cPrint(ai, di)
cPrint(aj, dj)
cPrint(ak, dk)
cPrint(al, dl)
cPrint(am, dm)
cPrint(an, dn)
cPrint(ao, do)
cPrint(ap, dp)
cPrint(aq, dq)
cPrint(ar, dr)
cPrint(as, ds)
cPrint(at, dt)
cPrint(au, du)
cPrint(av, dv)
cPrint(aw, dw)
cPrint(ax, dx)
cPrint(ay, dy)
cPrint(az, dz)
cPrint(ba, ea)
cPrint(bb, eb)
cPrint(bc, ec)
cPrint(bd, ed)
cPrint(be, ee)
cPrint(bf, ef)
cPrint(bg, eg)
cPrint(bh, eh)
cPrint(bi, ei)
cPrint(bj, ej)
cPrint(bk, ek)
cPrint(bl, el)
cPrint(bm, em)
cPrint(bn, en)
cPrint(bo, eo)
cPrint(bp, ep)
cPrint(bq, eq)
cPrint(br, er)
cPrint(bs, es)
sleep(1)
aa = aa-1
ab = ab-1
ac = ac-1
ad = ad-1
ae = ae-1
af = af-1
ag = ag-1
ah = ah-1
ai = ai-1
aj = aj-1
ak = ak-1
al = al-1
am = am-1
an = an-1
ao = ao-1
ap = ap-1
aq = aq-1
ar = ar-1
as = as-1
at = at-1
au = au-1
av = av-1
aw = aw-1
ax = ax-1
ay = ay-1
az = az-1
ba = ba-1
bb = bb-1
bc = bc-1
bd = bd-1
be = be-1
bf = bf-1
bg = bg-1
bh = bh-1
bi = bi-1
bj = bj-1
bk = bk-1
bl = bl-1
bm = bm-1
bn = bn-1
bo = bo-1
bp = bp-1
bq = bq-1
br = br-1
bs = bs-1
if aa == 0 then
aa = resetNum
elseif ab == 0 then
ab = resetNum
elseif ac == 0 then
ac = resetNum
elseif ad == 0 then
ad = resetNum
elseif ae == 0 then
ae = resetNum
elseif af == 0 then
af = resetNum
elseif ag == 0 then
ag = resetNum
elseif ah == 0 then
ah = resetNum
elseif ai == 0 then
ai = resetNum
elseif aj == 0 then
aj = resetNum
elseif ak == 0 then
ak = resetNum
elseif al == 0 then
al = resetNum
elseif am == 0 then
am = resetNum
elseif an == 0 then
an = resetNum
elseif ao == 0 then
ao = resetNum
elseif ap == 0 then
ap = resetNum
elseif aq == 0 then
aq = resetNum
elseif ar == 0 then
ar = resetNum
elseif as == 0 then
as = resetNum
elseif at == 0 then
at = resetNum
elseif au == 0 then
au = resetNum
elseif av == 0 then
av = resetNum
elseif aw == 0 then
aw = resetNum
elseif ax == 0 then
ax = resetNum
elseif ay == 0 then
ay = resetNum
elseif az == 0 then
az = resetNum
elseif ba == 0 then
ba = resetNum
elseif bb == 0 then
bb = resetNum
elseif bc == 0 then
bc = resetNum
elseif bd == 0 then
bd = resetNum
elseif be == 0 then
be = resetNum
elseif bf == 0 then
bf = resetNum
elseif bg == 0 then
bg = resetNum
elseif bh == 0 then
bh = resetNum
elseif bi == 0 then
bi = resetNum
elseif bj == 0 then
bj = resetNum
elseif bk == 0 then
bk = resetNum
elseif bl == 0 then
bl = resetNum
elseif bm == 0 then
bm = resetNum
elseif bn == 0 then
bn = resetNum
elseif bo == 0 then
bo = resetNum
elseif bp == 0 then
bp = resetNum
elseif bq == 0 then
bq = resetNum
elseif br == 0 then
br = resetNum
elseif bs == 0 then
bs = resetNum
sleep(1)
end
end