Jump to content
  • 0

Gg.prompt multiple Action


hacker6999

Question

7 answers to this question

Recommended Posts

10 hours ago, HEROGAMEOfficial said:

Then

t = gg.prompt({"Speed: [1;2]"}, {1,2}, {"number"})

 if t == nil then 

 alert("")

 else

 if t == 1 then

 

gg.alert("speed 1")

end

 

if t == 2 then

gg.alert("speed 2")

end

Link to comment
Share on other sites

4 hours ago, MonkeySAN said:
t = gg.prompt({"Speed: [1;2]"}, {nil}, {"number"})

if t == nil then gg.alert("Canceled")

elseif 

tonumber(t[1]) == 1 then gg.alert("speed 1")

elseif

tonumber(t[1]) == 2 then gg.alert("speed 2")

end

 

Thats nice but how do we turn it off like if I on speed 2 and then on speed 3 so I want 2 to automatically get off

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.