Posted 30 May 2014 - 12:29 PM
So I was writing an API for a OS I was making. Though every time I call a function from it, it clears the screen like I hoped and then says window:48: Expected number.
Here is my code:
Here is my code:
function clearWhite()
term.clear()
term.setTextColor("colors.white")
end
function clearOrange()
term.clear()
term.setTextColor("colors.orange")
end
function clearMagenta()
term.clear()
term.setTextColor("colors.magenta")
end
function clearLightBlue()
term.clear()
term.setTextColor("colors.lightBlue")
end
function clearYellow()
term.clear()
term.setTextColor("colors.yellow")
end
function clearLime()
term.clear()
term.setTextColor("colors.lime")
end
function clearPink()
term.clear()
term.setTextColor("colors.pink")
end
function clearGray()
term.clear()
term.setTextColor("colors.gray")
end
function clearLightGray()
term.clear()
term.setTextColor("colors.lightGray")
end
function clearCyan()
term.clear()
term.setTextColor("colors.cyan")
end
function clearPurple()
term.clear()
term.setTextColor("colors.purple")
end
function clearBlue()
term.clear()
term.setTextColor("colors.blue")
end
function clearBrown()
term.clear()
term.setTextColor("colors.brown")
end
function clearGreen()
term.clear()
term.setTextColor("colors.green")
end
function clearRed()
term.clear()
term.setTextColor("colors.red")
end
function clearBlack()
term.clear()
term.setTextColor("colors.black")
end
Thanks in advance.