Jump to content




button API - attempt to index ?


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

#1 Mining_Pickaxe

  • Members
  • 15 posts
  • Locationhm... Im not sure... I guess i am living on the earth? I may be wrong.

Posted 14 March 2015 - 08:33 PM

Hey Guys,
I have a problem with a Program to controll some redstone.
I am using DW20s buttonAPI. If i click on a button, i get the message:"button:58: attempt to index ? (a nil value)"

How can I fix that?

ButtonAPI: pastebin XCymC90k
My Program: pastebin HSLiPMsC

(Ps: You might not understand some words cause im german)

Thanks :)

#2 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 14 March 2015 - 10:37 PM

In your Freq1, Freq2, ect functions, you use

button.flash("Freq1")

When it should be

button.flash("Crafting 1")

You need to pass the name of the button to 'flash'

#3 Mining_Pickaxe

  • Members
  • 15 posts
  • Locationhm... Im not sure... I guess i am living on the earth? I may be wrong.

Posted 15 March 2015 - 12:22 PM

Ok:) tanks for your quick answer.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users