Jump to content
  • 0

In need for help


KomPo

Question


local t = gg.multiChoice({'A', 'B', 'C', 'D'})
if t == nil then
    How can i make it go back to the menu?
else
    if t[1] then
        gg.alert('do A')
    end
    if t[2] then
        gg.alert('do B')
    end
    if t[3] then
        gg.alert('do C')
    end
    if t[4] then
        gg.alert('do D')
    end
end

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

3 hours ago, KomPo said:


local t = gg.multiChoice({'A', 'B', 'C', 'D'})
if t == nil then
    How can i make it go back to the menu?
else
    if t[1] then
        gg.alert('do A')
    end
    if t[2] then
        gg.alert('do B')
    end
    if t[3] then
        gg.alert('do C')
    end
    if t[4] then
        gg.alert('do D')
    end
end

function starting()
local t = gg.multiChoice({'A', 'B', 'C', 'D'})
if t == nil then
starting()
else
    if t[1] then
        gg.alert('do A')
    end
    if t[2] then
        gg.alert('do B')
    end
    if t[3] then
        gg.alert('do C')
    end
    if t[4] then
        gg.alert('do D')
    end
end
end
starting()

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.