Jump to content

Recommended Posts

Posted

Is it possible to make a like text box and we can write it anything u want and the text will edit the value.

Posted

Hello there. In an online game, the speed of the game should remain constant, but I should shoot faster when shooting. Is it possible? I'm using the game speeding speed trick, the game time is getting faster, my enemies in front of me.

Posted
Hello there. In an online game, the speed of the game should remain constant, but I should shoot faster when shooting. Is it possible? I'm using the game speeding speed trick, the game time is getting faster, my enemies in front of me.
wrong thread sir[emoji23][emoji23]
Posted
4 hours ago, Cornysz said:

 

 

4 hours ago, Cornysz said:

wrong thread siremoji23.pngemoji23.png

I wanted to open a new topic, but I'm sorry I couldn't open it.

Posted
1 hour ago, Cornysz said:
4 hours ago, Revoxtical said:

can u give me another one? that example is to hard with me

local val = gg.prompt({[1] = 'input value'},{[1] = '0'})

if val == nil then
gg.toast('input value cancel')

else

gg.searchNumber('1;2;3;4', gg.TYPE_FLOAT)
gg.searchNumber('1', gg.TYPE_FLOAT)
gg.getResults(10)
gg.editAll(val[1], gg.TYPE_FLOAT)
gg.clearResults()
gg.toast('custom value edited')
end

Maybe something like code above

You can improve as you want

 

Posted
local val = gg.prompt({[1] = 'input value'},{[1] = '0'})if val == nil thengg.toast('input value cancel')elsegg.searchNumber('1;2;3;4', gg.TYPE_FLOAT)gg.searchNumber('1', gg.TYPE_FLOAT)gg.getResults(10)gg.editAll(val[1], gg.TYPE_FLOAT)gg.clearResults()gg.toast('custom value edited')end

Maybe something like code above

You can improve as you want

 

 

Woah! thank u very much :)

 

but can you make it the prompt only with number keyboard (keyboard from the gg), not phone keyboard. so they can't write abcdefghij blabla

  • Administrators
Posted

Specify type field as 'number' and it force use internal keyboard. But user can able input anything in field in any case. You must validate any input data from user. For example with regular expressions (regexp).

Posted
7 hours ago, Cornysz said:

Woah! thank u very much ?

 

but can you make it the prompt only with number keyboard (keyboard from the gg), not phone keyboard. so they can't write abcdefghij blabla

local val = gg.prompt({'Input value :'}, nil, {'number'})
if not val then gg.toast('Cancel')
elseif tonumber(val[1]) then
  gg.searchNumber('1;2;3;4', gg.TYPE_FLOAT)
  gg.searchNumber('1', gg.TYPE_FLOAT)
  gg.getResults(10)
  gg.editAll(val[1], gg.TYPE_FLOAT)
  gg.clearResults()
  gg.toast('custom value edited')
else
  gg.toast('Value invalid!')
end

 

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