Jump to content
  • 0

Pls fix my script


BaldiGT

Question

HOME=1
function HOME()
AB = gg.choice({'INDO','ENG'},nil,'LANGUAGE MENU' )
if AB == 1 then INDO() end
if AB == 2 then ENG() end
HOMEDM=-1
end

function INDO()
gg.alert('Ini Adalah INDO')
LAS()
end

function ENG()
gg.alert('This Is ENG')
LAW()
end

---------------INDO MENU---
function LAS()
gg.alert('Peringatan...Value Bisa Berganti')
hs = gg.choice({'Dasar','Sedang'})
if hs == 1 then DAS() end
if hs == 2 then MED() end
end

function DAS()
gg.searchNumber('998', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('88', gg.TYPE_WORD)
EXIT()
end



function MED()
gg.searchNumber('87', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('11', gg.TYPE_WORD)
EXIT()
end



--------------ENGLISH MENU---
function LAW()
gg.alert('Warning...Value Can Changed')
hs = gg.choice({'Basic','Medium'})
if hs == 1 then Y1() end
if hs == 2 then Y2() end
end

function Y1()
gg.searchNumber('998', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('88', gg.TYPE_WORD)
EXIT()
end

function Y2()
gg.searchNumber('87', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('11', gg.TYPE_WORD)
EXIT()
end




function EXIT()
gg.alert('Done/Selesai')
end


while(true)
do
  if gg.isVisible(true) then
    HOMEDM=1
    gg.setVisible(false) 
  end 
  if HOMEDM==1 then HOME() end
end

If they choose the language they want when they finish using the script, and when they press the gameguardian again it won't be taken to the language menu again but will be in the INDO / ENG language menu ... Look at My Script

 

Pls someone fix my script...

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

19 minutes ago, BaldiGT said:

HOME=1
function HOME()
AB = gg.choice({'INDO','ENG'},nil,'LANGUAGE MENU' )
if AB == 1 then INDO() end
if AB == 2 then ENG() end
HOMEDM=-1
end

function INDO()
gg.alert('Ini Adalah INDO')
LAS()
end

function ENG()
gg.alert('This Is ENG')
LAW()
end

---------------INDO MENU---
function LAS()
gg.alert('Peringatan...Value Bisa Berganti')
hs = gg.choice({'Dasar','Sedang'})
if hs == 1 then DAS() end
if hs == 2 then MED() end
end

function DAS()
gg.searchNumber('998', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('88', gg.TYPE_WORD)
EXIT()
end



function MED()
gg.searchNumber('87', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('11', gg.TYPE_WORD)
EXIT()
end



--------------ENGLISH MENU---
function LAW()
gg.alert('Warning...Value Can Changed')
hs = gg.choice({'Basic','Medium'})
if hs == 1 then Y1() end
if hs == 2 then Y2() end
end

function Y1()
gg.searchNumber('998', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('88', gg.TYPE_WORD)
EXIT()
end

function Y2()
gg.searchNumber('87', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('11', gg.TYPE_WORD)
EXIT()
end




function EXIT()
gg.alert('Done/Selesai')
end


while(true)
do
  if gg.isVisible(true) then
    HOMEDM=1
    gg.setVisible(false) 
  end 
  if HOMEDM==1 then HOME() end
end

If they choose the language they want when they finish using the script, and when they press the gameguardian again it won't be taken to the language menu again but will be in the INDO / ENG language menu ... Look at My Script

 

Pls someone fix my script...

hello can you fix this

Link to comment
Share on other sites

try this

language = 0
HOME=1
function HOME()
if language == 0 then
	AB = gg.choice({'INDO','ENG'},nil,'LANGUAGE MENU' )
	if AB == 1 then INDO() end
	if AB == 2 then ENG() end
end
if language == "IND" then
	LAS()
end
if language == "ENG" then
	LAW()
end
HOMEDM=-1
end

function INDO()
gg.alert('Ini Adalah INDO')
LAS()
end

function ENG()
gg.alert('This Is ENG')
LAW()
end

---------------INDO MENU---
function LAS()
language = "IND"
gg.alert('Peringatan...Value Bisa Berganti')
hs = gg.choice({'Dasar','Sedang'})
if hs == 1 then DAS() end
if hs == 2 then MED() end
end

function DAS()
gg.searchNumber('998', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('88', gg.TYPE_WORD)
EXIT()
end



function MED()
gg.searchNumber('87', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('11', gg.TYPE_WORD)
EXIT()
end



--------------ENGLISH MENU---
function LAW()
language = "ENG"
gg.alert('Warning...Value Can Changed')
hs = gg.choice({'Basic','Medium'})
if hs == 1 then Y1() end
if hs == 2 then Y2() end
end

function Y1()
gg.searchNumber('998', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('88', gg.TYPE_WORD)
EXIT()
end

function Y2()
gg.searchNumber('87', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('11', gg.TYPE_WORD)
EXIT()
end




function EXIT()
gg.alert('Done/Selesai')
end


while(true)
do
  if gg.isVisible(true) then
    HOMEDM=1
    gg.setVisible(false) 
  end 
  if HOMEDM==1 then HOME() end
end

 

Link to comment
Share on other sites

8 hours ago, BaldiGT said:

HOME=1
function HOME()
AB = gg.choice({'INDO','ENG'},nil,'LANGUAGE MENU' )
if AB == 1 then INDO() end
if AB == 2 then ENG() end
HOMEDM=-1
end

function INDO()
gg.alert('Ini Adalah INDO')
LAS()
end

function ENG()
gg.alert('This Is ENG')
LAW()
end

---------------INDO MENU---
function LAS()
gg.alert('Peringatan...Value Bisa Berganti')
hs = gg.choice({'Dasar','Sedang'})
if hs == 1 then DAS() end
if hs == 2 then MED() end
end

function DAS()
gg.searchNumber('998', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('88', gg.TYPE_WORD)
EXIT()
end



function MED()
gg.searchNumber('87', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('11', gg.TYPE_WORD)
EXIT()
end



--------------ENGLISH MENU---
function LAW()
gg.alert('Warning...Value Can Changed')
hs = gg.choice({'Basic','Medium'})
if hs == 1 then Y1() end
if hs == 2 then Y2() end
end

function Y1()
gg.searchNumber('998', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('88', gg.TYPE_WORD)
EXIT()
end

function Y2()
gg.searchNumber('87', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('11', gg.TYPE_WORD)
EXIT()
end




function EXIT()
gg.alert('Done/Selesai')
end


while(true)
do
  if gg.isVisible(true) then
    HOMEDM=1
    gg.setVisible(false) 
  end 
  if HOMEDM==1 then HOME() end
end

If they choose the language they want when they finish using the script, and when they press the gameguardian again it won't be taken to the language menu again but will be in the INDO / ENG language menu ... Look at My Script

 

Pls someone fix my script... 

Try this :

local lang
local indo = {
'Ini Adalah INDO',
'Peringatan...Value Bisa Berganti',
'Dasar',
'Sedang',
'Keluar',
'Pilih Menu'
}
local eng = {
'This Is ENG',
'Warning...Value Can Changed',
'Basic',
'Medium',
'Exit',
'Select Menu'
}
HOMEDM=1
function HOME()
AB = gg.choice({'INDO','ENG'},nil,'LANGUAGE MENU' )
if AB then
  if AB == 1 then lang = indo end
  if AB == 2 then lang = eng end
  gg.alert(lang[1])
else
  HOME()
end
HOMEDM=-1
end
---------------MENU---
function LAS()
gg.alert(lang[2])
hs = gg.choice({lang[3],lang[4],lang[5]}, nil, lang[6])
if hs == 1 then DAS() end
if hs == 2 then MED() end
if hs == 3 then os.exit() end
end

function DAS()
gg.searchNumber('998', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('88', gg.TYPE_WORD)
EXIT()
end

function MED()
gg.searchNumber('87', gg.TYPE_WORD, False, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10)
gg.editAll('11', gg.TYPE_WORD)
EXIT()
end

function EXIT()
gg.alert('Done/Selesai')
end

if not lang then HOME() end

while true do
  if gg.isVisible() then
    HOMEDM=1
    gg.setVisible(false) 
  end 
  if HOMEDM==1 then LAS() end
end

 

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.