Jump to content
  • 0

gg.alert


MilkyGT

Question


::ag::
local d = gg.alert('(1/2)❗️','>>','<<','OK')

if d == 1 then goto pj end
if d == 2 then goto pj end
if d == 3 then 

end


::pj::
local w = gg.alert('(2/2)❗️','>>','<<','OK')

if w == 1 then goto ag end
if w == 2 then goto ag end
if w == 3 then 
end

Hmm anyone can help me solve this problem? i have question How can if i click OK at (1/2) its going to (2/2), but when i click OK at (2/2) its done and script ended, its should be same if i click OK at (1/2) its should be done and ended but why (idk why too) its going to (2/2) i click ok again then script ended ,..

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

you need to place some more options and place in the OK of the first part "os.exit ()" because if not only it will redirect to the second part and the script will end because there are no more options, I will leave you here already done the exit OK:

::ag::
local d = gg.alert('(1/2)❗️','>>','<<','OK')

if d == 1 then goto pj end
if d == 2 then goto pj end
if d == 3 then 
if d == 4 then goto exit end

::exit::
os.exit ()
print("You text in this")

end


::pj::
local w = gg.alert('(2/2)❗️','>>','<<','OK')

if w == 1  then goto ag end
if w == 2 then goto ag end
if w == 3 then goto ag 
end

 

 

Link to comment
Share on other sites

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.