Jump to content




[LUA] [Question] A table


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

#1 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 03 October 2012 - 11:32 PM

Whats the simplest code for a table containing only Yes and No (for both horizontal and vertical) and the code that happens of which one is selected? I honestly cant find anything :(/>

#2 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 03 October 2012 - 11:39 PM

That is a very broad description for doing something you want to do. Are you trying to make a minign turtle work, are you making a menu, are you trying to make a game? We need details, and some code. Nobody really likes giving out their time if you don't know what you're looking for.

#3 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 03 October 2012 - 11:44 PM

View PostCranium, on 03 October 2012 - 11:39 PM, said:

That is a very broad description for doing something you want to do. Are you trying to make a minign turtle work, are you making a menu, are you trying to make a game? We need details, and some code. Nobody really likes giving out their time if you don't know what you're looking for.

Not a hectic code. All its doing is maintainance for a pump. Table is for switching it on and off. I havent started the code yet. Trying to find a code for how to create tables atm.

#4 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 03 October 2012 - 11:52 PM

table = {"Yes", "No"}
Done. I created a table for you. :(/>
But I think you are trying to create a system that uses options available in that table, to utilize something to turn the pump on/off? If so, check out this tutorial: http://www.computerc...gh-menu-making/

#5 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 03 October 2012 - 11:58 PM

View PostCranium, on 03 October 2012 - 11:52 PM, said:

table = {"Yes", "No"}
Done. I created a table for you. :(/>
But I think you are trying to create a system that uses options available in that table, to utilize something to turn the pump on/off? If so, check out this tutorial: http://www.computerc...gh-menu-making/

Thanks <3





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users