Jump to content
  • 0

How to make gg.multichoice menu?


GHX

Question

2 answers to this question

Recommended Posts

function main()

menu = gg.multiChoice({' demo1 ',' demo2 ',' demo3 ', ' demo4','demo5','demo6'},nil,'demo by aj')

if menu == nil then main() end
if menu[1]  then d1() end
if menu[2]  then d2() end
if menu[3]  then d3() end
if menu[4]  then d4() end
if menu[5]  then d5() end
if menu[6]  then d6() end


end

Use all d1,d2,d3,d4,d5,d6 function before writting the multiChoice

 

If you write after, then it will give error(nil value)

 

First write all function  then write multiChoice

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.