Jump to content




Help !


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

#1 Leon669

  • Members
  • 57 posts
  • LocationGermany

Posted 24 August 2014 - 12:04 AM

Hi i have a error when i press any key that is given in the programm code

http://pastebin.com/v0XtxM0u

eingabe:6: index expected, got nil


  • shell.run"farbe"


  • print("ChromeOs Booten ?")


  • sel = 0


  • while true do


  • event. key = os.pullEvent("key")


  • if key == 28 then


  • print("Auswahl bestaetigt")


  • sel = 0


  • elseif key == 14 then


  • print("okay")


  • sel = 1


  • end


  • end


#2 AssossaGPB

  • Members
  • 126 posts
  • LocationFlorida, USA

Posted 24 August 2014 - 12:26 AM

On line 6, it should be a comma not a period. Just like in English (and all languages I think) items in a list/series are separated with commas.

So line 6 should be:
event, key = os.pullEvent("key")

Not:
event. key = os.pullEvent("key")

Edited by AssossaGPB, 24 August 2014 - 05:09 PM.


#3 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 24 August 2014 - 12:56 AM

View PostAssossaGPB, on 24 August 2014 - 12:26 AM, said:

On line 6, it should be a period not a comma.
Don't you mean comma instead of a period? And yeah that should fix it.

#4 Leon669

  • Members
  • 57 posts
  • LocationGermany

Posted 24 August 2014 - 12:15 PM

Thx a lot :D
What a fail :D

#5 AssossaGPB

  • Members
  • 126 posts
  • LocationFlorida, USA

Posted 24 August 2014 - 05:09 PM

View PostDragon53535, on 24 August 2014 - 12:56 AM, said:

View PostAssossaGPB, on 24 August 2014 - 12:26 AM, said:

On line 6, it should be a period not a comma.
Don't you mean comma instead of a period? And yeah that should fix it.
Oops, fixed that. Thanks for pointing that out!





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users