Jump to content
  • 0

Gg.prompt multiple Action


hacker6999
 Share

Question

7 answers to this question

Recommended Posts

  • 0
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

  • 0
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

 

Link to comment
Share on other sites

  • 0
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.