Lover1500 Posted June 8, 2020 Share 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! Link to comment Share on other sites More sharing options...
Administrators Enyby Posted June 8, 2020 Administrators Share Posted June 8, 2020 Test input value to equal empty string and take appropriate action. Link to comment Share on other sites More sharing options...
HEROGAMEOfficial Posted June 8, 2020 Share Posted June 8, 2020 learn again the latest version of GG there are no problems with the API | syntax Link to comment Share on other sites More sharing options...
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!
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.