Jump to content




fs error. Crash log saving.


  • You cannot reply to this topic
2 replies to this topic

#1 Goof

  • Members
  • 751 posts

Posted 16 February 2013 - 11:52 AM

Hey!

Im trying to make a Crashlog that displays a cool designed screen right before the crash. but. when i've made a "save Crash log" button and i clicked on it it shows me this:
Test:35: attempt to index ? (a nil value)


I think im wrong in the fs api, but im not sure.. i dont remember the fs api that much.

Spoiler

Thanks in advance!

#2 OmegaVest

  • Members
  • 436 posts

Posted 16 February 2013 - 12:13 PM

...It might be writeLine. Try using write, and append your own "\n" to it. If it still errors, then you will know there's something wrong with your file instantiation, not the writeLine. If it works, then writeLine is still being ornery, and you should just avoid them for now.

#3 Goof

  • Members
  • 751 posts

Posted 16 February 2013 - 12:17 PM

write() doesnt work either. but i changed so much... but nothing works.

(code:)

Spoiler


edit: but how can i then change the file installation
edit 2: well.. now it works when i type in "lol" in the sFil = fs.open("lol", "w") but how could i then change it so it would be the variable "fLNum" ?

EDIT 3: Everything works now.. i forgot to make the dir in the "cLogs" xD


Everything works now!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users