loversSlayer Posted April 16, 2020 Posted April 16, 2020 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.
Administrators Enyby Posted April 16, 2020 Administrators Posted April 16, 2020 Define local variable before function.
loversSlayer Posted April 16, 2020 Author Posted April 16, 2020 Just now, Enyby said: Define local variable before function. Already got it, but ty
Question
loversSlayer
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.
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.