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
  On 10/25/2018 at 12:20 AM, Metin26 said:
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
  On 10/25/2018 at 12:38 PM, Cornysz said:
  On 10/25/2018 at 9:38 AM, Revoxtical said:
Expand  

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

Expand  
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
  On 10/25/2018 at 2:26 PM, bukandewa said:
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
  On 10/25/2018 at 7:35 PM, 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

Expand  
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.