Jump to content
  • 0

Prompt problem in script


Lover1500

Question

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!

Screenshot_2020-06-08-22-32-47-95_982bed91f2d673f5aef6add0b1431762.png

Screenshot_2020-06-08-22-33-01-63_982bed91f2d673f5aef6add0b1431762.png

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.