Lover1500 Posted June 8, 2020 Posted June 8, 2020 Prompt part of my script is turn = ({'Curent turn', 'Turn how many you want'}, nil, nil) if turn == nil then return end That's it.If the user clicks cancel or outsides, the script will return to main where the script starts. But when the user clicks the 'OK' box without putting any in prompt, I got error like in the second picture. How can solve that problem? I still dont know. I want it to return to starting script, not error. Help me please!
Administrators Enyby Posted June 8, 2020 Administrators Posted June 8, 2020 Test input value to equal empty string and take appropriate action.
HEROGAMEOfficial Posted June 8, 2020 Posted June 8, 2020 learn again the latest version of GG there are no problems with the API | syntax
Question
Lover1500
Prompt part of my script is
turn = ({'Curent turn', 'Turn how many you want'}, nil, nil)
if turn == nil then return end
That's it.If the user clicks cancel or outsides, the script will return to main where the script starts.
But when the user clicks the 'OK' box without putting any in prompt, I got error like in the second picture.
How can solve that problem? I still dont know.
I want it to return to starting script, not error.
Help me please!
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.