Jump to content
  • 0

Help gg.prompt freeze


InterEcrypt

Question

I do not work very promptly and I have a suffocating doubt. I created a prompt code as it was not how I wanted it I used record script. When I start the .txt file of the record it works normal only when I go to another script it searches normal but does not edit.

Code: 

local val = gg.prompt({[1] = 'HACK'}, {[1] = 'DIGITe Aqui'}) 

if val[1] == nil then print('sem entrada,sem cheat!') end

gg.searchNumber("1.34015259", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)

 

revert = gg.getResults(100)

local t = gg.getResults(100)

for i, v in ipairs(t) do

 if v.flags == gg.TYPE_FLOAT then

  v.value = val[1]

  v.freeze = true

 end

end

end

gg.addListItems(t)

t = nil

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • Administrators

You are confusing something. There you only need two "end".
Here is an example of the record and your fixed script that works.

-- Script generated by GameGuardian 8.65.1 (12362) at 2018-10-14 12:26:27 for Nova Launcher [com.teslacoilsw.launcher 5.5.4 (59400)]
-- Lua help: http://gameguardian.net/help/

-- options
local scriptName = [=====[Script for Nova Launcher 5.5.4]=====]
local scriptVersion = '1.0.0'
local scriptAuthor = 'User'
local startToast = ''
-- 0 - no check; 1 - check package only, 2 - check package and build
local checkTarget = 0

local targetName = [=====[Nova Launcher]=====]
local targetPkg = 'com.teslacoilsw.launcher'
local targetVersion = [=====[5.5.4]=====]
local targetBuild = 59400

-- functions

-- init
gg.require('8.65.1', 12362)

if startToast ~= '' then startToast = '\n'..startToast end
gg.toast(scriptName..' v'..scriptVersion..' by '..scriptAuthor..startToast)

if checkTarget ~= 0 then
	local info = gg.getTargetInfo()
	local check = false
	local current = false
	if checkTarget >= 1 then
		check = targetPkg
		current = info.packageName
	end
	if checkTarget >= 2 then
		check = check..' '..targetVersion..' ('..targetBuild..')'
		current = current..' '..info.versionName..' ('..info.versionCode..')'
	end
	if check ~= current then
		gg.alert('This script for "'..targetName..'" ['..check..'].\nYou select "'..info.label..'" ['..current..'].\nNow script exit.')
		os.exit()
	end
end
local revert = nil

-- main code
gg.searchNumber("10", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)

revert = gg.getResults(100)
local t = gg.getResults(100)
for i, v in ipairs(t) do
	if v.flags == gg.TYPE_FLOAT then
		v.value = "7"
		v.freeze = true
	end
end
gg.addListItems(t)
t = nil
 
local val = gg.prompt({[1] = 'HACK'}, {[1] = 'DIGITe Aqui'})
if val[1] == nil then print('sem entrada,sem cheat!') end
gg.searchNumber("10", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
 
revert = gg.getResults(100)
local t = gg.getResults(100)
for i, v in ipairs(t) do
 if v.flags == gg.TYPE_FLOAT then
  v.value = val[1]
  v.freeze = true
 end
end
gg.addListItems(t)
t = nil 

 

Link to comment
Share on other sites

On 10/14/2018 at 1:47 AM, Enyby said:

You are confusing something. There you only need two "end".
Here is an example of the record and your fixed script that works.


-- Script generated by GameGuardian 8.65.1 (12362) at 2018-10-14 12:26:27 for Nova Launcher [com.teslacoilsw.launcher 5.5.4 (59400)]
-- Lua help: http://gameguardian.net/help/

-- options
local scriptName = [=====[Script for Nova Launcher 5.5.4]=====]
local scriptVersion = '1.0.0'
local scriptAuthor = 'User'
local startToast = ''
-- 0 - no check; 1 - check package only, 2 - check package and build
local checkTarget = 0

local targetName = [=====[Nova Launcher]=====]
local targetPkg = 'com.teslacoilsw.launcher'
local targetVersion = [=====[5.5.4]=====]
local targetBuild = 59400

-- functions

-- init
gg.require('8.65.1', 12362)

if startToast ~= '' then startToast = '\n'..startToast end
gg.toast(scriptName..' v'..scriptVersion..' by '..scriptAuthor..startToast)

if checkTarget ~= 0 then
	local info = gg.getTargetInfo()
	local check = false
	local current = false
	if checkTarget >= 1 then
		check = targetPkg
		current = info.packageName
	end
	if checkTarget >= 2 then
		check = check..' '..targetVersion..' ('..targetBuild..')'
		current = current..' '..info.versionName..' ('..info.versionCode..')'
	end
	if check ~= current then
		gg.alert('This script for "'..targetName..'" ['..check..'].\nYou select "'..info.label..'" ['..current..'].\nNow script exit.')
		os.exit()
	end
end
local revert = nil

-- main code
gg.searchNumber("10", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)

revert = gg.getResults(100)
local t = gg.getResults(100)
for i, v in ipairs(t) do
	if v.flags == gg.TYPE_FLOAT then
		v.value = "7"
		v.freeze = true
	end
end
gg.addListItems(t)
t = nil
 

local val = gg.prompt({[1] = 'HACK'}, {[1] = 'DIGITe Aqui'})
if val[1] == nil then print('sem entrada,sem cheat!') end
gg.searchNumber("10", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
 
revert = gg.getResults(100)
local t = gg.getResults(100)
for i, v in ipairs(t) do
 if v.flags == gg.TYPE_FLOAT then
  v.value = val[1]
  v.freeze = true
 end
end
gg.addListItems(t)
t = nil 

 

Not work with 2 ends (while error) and it only searches does not edit the values now when start by the record it goes normal. Please help me enyby.

Link to comment
Share on other sites

5 hours ago, Enyby said:

I can not help you. That code which I wrote, works for me. No mistakes. And it works as it should.
And you say that it does not work. It does not happen. You are doing something wrong.

could you make a file with the code you created to download please? There are many errors in the site or it is the while.

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.