Jump to content

How to make custom edit


Cornysz
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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]
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Administrators

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

Link to comment
Share on other sites

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

 

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.