Jump to content
  • 0

Prompt 1st index issue


loversSlayer

Question

function a()
                local Avar = gg.prompt({'text1',
                                        'text2',
                                        'text3'}, {Avar[1],Avar[2],Avar[3]}, {'number','number','number'})
                   if Avar == nil then os.exit end

Log: attempt to index ? (nil value) with key 1 global Avar

if i change 2nd table as nil, then it works perfectly. But i wanna previous values every time using this function.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.