Posted 02 July 2015 - 02:55 AM
I keep on trying to fix this but I get the same error as in the topic please help and here is my code:
runTime = function()
while running do
event, button, x, y = os.pullEvent("mouse_click")
if _ms == 0 and button == 1 and x < 5 and y == 1 then
drawMenu1()
_ms = 1
elseif _ms == 1 and button == and y == 2 and x > 5 then
stop()
elseif _ms == 1 and button == 1 and x < 5 and y == 1 then
init()
elseif _ms == 0 and _rcm == 0 and button == 2 then
_rcm = 1
drawRightClickMenu(x ,y)
runTime = function()
while running do
event, button, x, y = os.pullEvent("mouse_click")
if _ms == 0 and button == 1 and x < 5 and y == 1 then
drawMenu1()
_ms = 1
elseif _ms == 1 and button == and y == 2 and x > 5 then
stop()
elseif _ms == 1 and button == 1 and x < 5 and y == 1 then
init()
elseif _ms == 0 and _rcm == 0 and button == 2 then
_rcm = 1
drawRightClickMenu(x ,y)