Jump to content
  • 0

cancel button dosent work


animehack

Question

5 answers to this question

Recommended Posts

On 7/4/2020 at 8:00 AM, GameCrasher said:

Create a nil section,


Menu = gg.choice({'1','2','3'}, nil)
if Menu == 1 then goto a1 end
if Menu == 2 then goto a2 end
if Menu == 3 then goto a3 end
if Menu == nil then goto sleep end
::a1::
os.exit()
::a2::
os.exit()
::a3::
os.exit()
::sleep::
gg.alert('Sleep code here')

 

thx exacly what i was looking for

Link to comment
Share on other sites

Create a nil section,

Menu = gg.choice({'1','2','3'}, nil)
if Menu == 1 then goto a1 end
if Menu == 2 then goto a2 end
if Menu == 3 then goto a3 end
if Menu == nil then goto sleep end
::a1::
os.exit()
::a2::
os.exit()
::a3::
os.exit()
::sleep::
gg.alert('Sleep code here')

 

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.