mibac138, on 25 November 2012 - 08:56 AM, said:
Code:
local zm = 'zmienne' term.clear() term.setCursorPos(1,1) print "Status Wlaczania: " if fs.exists(zm) then term.setCursorPos(1,2) print "Zmienne [X]" else term.setCursorPos(1,2) print "Zmienne [ ]" fs.open(zm, "w") fs.close(zm) term.setCursorPos(1,2) sleep(1) term.clearLine() print "Zmienne [X]" end
Error: startup:12: attempt to call nil zmienne is in polish in english it means variables

/>/>/>
Maybe try this:
local zm = 'zmienne'
term.clear()
term.setCursorPos(1,1)
print "Status Wlaczania: "
if fs.exists(zm) then
term.setCursorPos(1,2)
print "Zmienne [X]"
else
term.setCursorPos(1,2)
print "Zmienne [ ]"
fs.open(zm, "w")
fs.close()
term.setCursorPos(1,2)
sleep(1)
term.clearLine()
print "Zmienne [X]"
end
Tell me if that's what you wanted.