Posted 01 May 2016 - 03:22 AM
My program is closing with no error and no print messages i put:
The program only opens and closes. Only the DEBUGs: 1 and 2 are printed in the screen, the DEBUG 3 not. So the problem is in the function "sleep(1)" ??
if fs.exists("disk/usuario") then
print("Debug 1")
local ab = fs.open("disk/usuario", "r")
Gerente = ab.readLine()
ab.close()
local passou = false
local passou2 = false
Disco_ID = disk.getID(diskDriveSide)
print("Debug 2")
sleep(1)
print("Debug 3")
else
print("debug 4")
end
The program only opens and closes. Only the DEBUGs: 1 and 2 are printed in the screen, the DEBUG 3 not. So the problem is in the function "sleep(1)" ??