Jump to content
  • 0

Help


Loli12
 Share

Question

please help 

my skript error when the script menu displays it ends even though I have added the value

sorry if my language is a bit stiff because I use a translet

Edited by Loli12
Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0
23 minutes ago, sodaface said:

Post your script.  

That way we can see what you've done and help with errors

gg.alert("WELCOME TO SKRIPT HACKUDO")
function START()
menu = gg.multiChoice({
    "1️⃣",
    "2️⃣",
    "🔙",
},nil,"subscribe Hackudo")
   if menu == 1 then DAK_AE1() end
   if menu == 2 then DAK_AE2() end
   if menu == 3 then exit() end
function DAK_AE1()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.processResume()
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0", gg.TYPE_FLOAT)
end
function DAK_AE2()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.processResume()
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0", gg.TYPE_FLOAT)

end
function exit()
gg.setVisible()
end
end
  
  This is it

The script is stppped at gg.elert then the script ends

Edited by Loli12
Link to comment
Share on other sites

  • 0
local gg = gg
gg.alert("WELCOME TO SCRIPT HACKUDO")

function START()
menu = gg.multiChoice({
    "1️⃣",
    "2️⃣",
    "🔙"},
nil,"subscribe Hackudo")
   if menu == nil then
   gg.toast("minimize menu")
   else
   if menu[1] then DAK_AE1() end
   if menu[2] then DAK_AE2() end
   if menu[3] then exit() end
end
end

function DAK_AE1()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0", gg.TYPE_FLOAT)
gg.clearResults()
gg.sleep(500)
gg.toast("Hack 1 Done")
end

function DAK_AE2()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0", gg.TYPE_FLOAT)
gg.clearResults()
gg.sleep(500)
gg.toast("Hack 2 Done")
end

function exit()
gg.setVisible(true)
os.exit(print("Thank You"))
end

while true do
if gg.isVisible() then
gg.setVisible(false)
START()
end
end

 

Edited by MonkeySAN
missing symbol keep happening
Link to comment
Share on other sites

  • 0
2 hours ago, AKidWithMidgetFriend said:

Use ' X' single quotes instead of the double ones you're using " X" inside the parantheses near gg.alert

 

 

i had tested the script by @MonkeySAN

and its worked perfectly.

there is nothing wrong with the single or double quotes.

you can use either both of it.

to make the script past beyond the alert..below is important :

while true do

if gg.isVisible() then

gg.setVisible(false)

START()

end

end

still put just that will not make the script work as intended.

Edited by zam535582
Link to comment
Share on other sites

  • 0

or you can write like this without assign any function in it..

gg.alert("WELCOME TO SKRIPT HACKUDO")

menu = gg.multiChoice({
    "1️⃣",
    "2️⃣",
    "🔙"},
nil,"subscribe Hackudo")

if menu[1] then
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.processResume()
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0", gg.TYPE_FLOAT)
gg.toast("Hack 1 Done")
end

if menu[2] then
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.processResume()
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0", gg.TYPE_FLOAT)
gg.toast("Hack 2 Done")
end

if menu[3] then
gg.setVisible(true)
os.exit()
end

but then your script will end everytime.

im believe thats is how you @AKidWithMidgetFriend

wrote your script...right.

Edited by zam535582
Link to comment
Share on other sites

  • 0
2 hours ago, zam535582 said:

or you can write like this without assign any function in it..


gg.alert("WELCOME TO SKRIPT HACKUDO")

menu = gg.multiChoice({
    "",
    "",
    ""},
nil,"subscribe Hackudo")

if menu[1] then
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.processResume()
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0", gg.TYPE_FLOAT)
gg.toast("Hack 1 Done")
end

if menu[2] then
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.processResume()
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0", gg.TYPE_FLOAT)
gg.toast("Hack 2 Done")
end

if menu[3] then
gg.setVisible(true)
os.exit()
end

but then your script will end everytime.

im believe thats is how you @AKidWithMidgetFriend

wrote your script...right.

oh thank you my script has no problem anymore 🙏🙏

Link to comment
Share on other sites

  • 0
3 hours ago, zam535582 said:

i had tested the script by @MonkeySAN

and its worked perfectly.

there is nothing wrong with the single or double quotes.

you can use either both of it.

to make the script past beyond the alert..below is important :

while true do

if gg.isVisible() then

gg.setVisible(false)

START()

end

end

still put just that will not make the script work as intended.

I will write it down in the brain 🧠🧠

Link to comment
Share on other sites

  • 0
4 hours ago, zam535582 said:

or you can write like this without assign any function in it..


gg.alert("WELCOME TO SKRIPT HACKUDO")

menu = gg.multiChoice({
    "",
    "",
    ""},
nil,"subscribe Hackudo")

if menu[1] then
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.processResume()
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0", gg.TYPE_FLOAT)
gg.toast("Hack 1 Done")
end

if menu[2] then
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.processResume()
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
revert = gg.getResults(100, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0", gg.TYPE_FLOAT)
gg.toast("Hack 2 Done")
end

if menu[3] then
gg.setVisible(true)
os.exit()
end

but then your script will end everytime.

im believe thats is how you @AKidWithMidgetFriend

wrote your script...right.

Yessir, instead of returning it just ends after each menu choice. Not very useful because every advantage of doing this can be done better by other means. I had made my scripts like this as to not have to exit the menu via button, but there are alot better means of doing that which I was not aware of at the time of making the scripts. Maybe in future script updates I'll re-do that aspect of them

Edited by AKidWithMidgetFriend
Link to comment
Share on other sites

  • 0

not very useful??..its rather unlikely.

its depend on the situation..if the hack is just a one time hack..no need to bother it for a quite long time then thats the way to go.

its simple, easy and no headache.

except if you tap Cancel..but thats for me not a problem at all as long as you know the hack work.

when if you wanna hack something that are not permanent or constantly change its values or address or whatever from time to time...you really(maybe)  want to keep your script alive at all time.

because its will much easier and faster(depend) than had to restart the script everytime.

plus its nice to give user somekind of control over the script.

that been said...its up to your choice how you want your script to be.

Edited by zam535582
Link to comment
Share on other sites

  • 0
55 minutes ago, zam535582 said:

not very useful??..its rather unlikely.

its depend on the situation..if the hack is just a one time hack..no need to bother it for a quite long time then thats the way to go.

its simple, easy and no headache.

except if you tap Cancel..but thats for me not a problem at all as long as you know the hack work.

when if you wanna hack something that are not permanent or constantly change its values or address or whatever from time to time...you really(maybe)  want to keep your script alive at all time.

because its will much easier and faster(depend) than had to restart the script everytime.

plus its nice to give user somekind of control over the script.

that been said...its up to your choice how you want your script to be.

You misunderstood what I was referring to when I said not useful. The way I wrote my script wasn't a very useful way of doing it because of the aforementioned reasons. Reasons being that any use that you could get out of formatting a script without function declaration you can also get that use of function based menu calls. It was also implicative in my reply that I had intentionally made my script that way. However it was just the only way I knew how to make it at the time. All I knew how to do at the time was to establish menu choices, to chose from and code actions for that menu choice to preform. But thank you for the clarity as other outsiders reading the thread will know the context and the benefits! 🙂

***EDIT*** 

Thanks to this forum the LUAorg site and trial and error my understanding of the languages use in gg has really improved. This thread for example has improved my understanding of functions thanks to MonkeySan and Zam535582 if not for this than i wouldve likely been on 1 time action scripts or would've been declaring my functions invalidly.

Edited by AKidWithMidgetFriend
Link to comment
Share on other sites

  • 0

in other words...you can write a script in many ways.

have fun..

local gg = gg
--you can put <gg.setRanges> here if all the hacks are from the same region.

function mainmenu()
local menu  = gg.multiChoice({
     "Hack 1",
     "Hack 2",
     "Hack 3",
     "Hack 4",
     "Hack 5",
     "EXIT"},
nil,"Main Menu")


--cancel
if menu == nil then 
gg.setVisible(false)
gg.toast("Minimize menu") 
else

--hack 1
if menu[1] then
--put your hack here
gg.alert("Hack 1 Done")
end

--hack 2
if menu[2] then
--put your hack here
gg.alert("Hack 2 Done")
end

--hack 3
if menu[3] then
--put your hack here
gg.alert("Hack 3 Done")
end

--hack 4
if menu[4] then
--put your hack here
gg.alert("Hack 4 Done")
end

--hack 5
if menu[3] then
--put your hack here
gg.alert("Hack 5 Done")
end

--EXIT
if menu[6] then
gg.toast("Canceled")
os.exit()
end
end
end

while true do 
if gg.isVisible() then
gg.setVisible(false)
mainmenu()
end
end

 

Edited by MonkeySAN
Link to comment
Share on other sites

  • 0
3 minutes ago, MonkeySAN said:

in other words...you can write a script in many ways.

have fun..


local gg = gg
--you can put <gg.setRanges> here if all the hacks are from the same region.

function mainmenu()
local menu  = gg.multiChoice({
     "Hack 1",
     "Hack 2",
     "Hack 3",
     "Hack 4",
     "Hack 5",
     "EXIT"},
nil,"Main Menu")


--cancel
if menu == nil then 
gg.setVisible(false)
gg.toast("Minimize menu") 
else

--hack 1
if menu[1] then
--put your hack here
gg.alert("Hack 1 Done")
end

--hack 2
if menu[2] then
--put your hack here
gg.alert("Hack 2 Done")
end

--hack 3
if menu[3] then
--put your hack here
gg.alert("Hack 3 Done")
end

--hack 4
if menu[4] then
--put your hack here
gg.alert("Hack 4 Done")
end

--hack 5
if menu[3] then
--put your hack here
gg.alert("Hack 5 Done")
end

--EXIT
if menu[6] then
gg.toast("Canceled")
os.exit()
end
end
end

while true do 
if gg.isVisible() then
gg.setVisible(false)
mainmenu()
end
end

 

very good but I want to ask a question for example

 

we have gg.multiChoice {( 'menu 1', 'menu 2', 'exit', }, nil, ......) we want to add gg.multiChoice in menu 1 and 2 to sort it ON OFF

 

sorry if something is not understood

Link to comment
Share on other sites

  • 0
On 1/25/2021 at 12:51 AM, MonkeySAN said:

sorry I want to ask how to find coordinate in game guardian, how is it not remote surgery with the cheat engine

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.