error index lua 24 method must be called with a colon
code, what do i do?
-- My Second Lua Program
-- Author: Dragonxtamer596
red = Color.new(255, 0, 0)
function checkcontrols()
pad = Controls.read()
if pad:start() then
end
exitgame = 1
end
local choice = math.random(1, 3) --Chooses a random number between 1 and 3.
if choice == 1 then
screen.print(200, 100, "1", red)
end
if choice == 2 then
screen.print(200, 100, "2", red)
end
if choice == 3 then
screen.print(200, 100, "3", red)
end
screen.flip()
while true do
screen.waitVblankStart()
end
checkcontrols()
drawall()
if pad:start() == 1 then
end
while true do
break
end