Jump to content
  • 0

Hello Their Im Have a question if its possible or not


Unnamed1

Question

So i noticed that selecting language will be one time Selection and after reexecuting the script it will no longer pop up 

 

Can i do that for my choice as well?

For example

Hail Mod

Pixela Mod Menu 

 

They choosed Hail Mod

It will save and after reexecuting i will Automatically Pop up the Hailmod And The only Way To Remove it by Pressing Exit Button and after that they can Simply select the choice again

And Choice

Pixela it will do the same and only be Remove by Pressing Exit

Thanks if someone can help really appreciate it

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

16 hours ago, Unnamed1 said:

So i noticed that selecting language will be one time Selection and after reexecuting the script it will no longer pop up 

 

Can i do that for my choice as well?

For example

Hail Mod

Pixela Mod Menu 

 

They choosed Hail Mod

It will save and after reexecuting i will Automatically Pop up the Hailmod And The only Way To Remove it by Pressing Exit Button and after that they can Simply select the choice again

And Choice

Pixela it will do the same and only be Remove by Pressing Exit

Thanks if someone can help really appreciate it

I think this is the only way

 
hh = loadfile(gg.EXT_CACHE_DIR.."/something.txt")-- trying to loading a file in this direction
function onetimework()
if hh then -- if the file has been load it will call test()
test()
else -- if the file doesn't exists it will call this
mo1 = gg.choice({"arabic","English"})
if mo1 == nil then onetimework() else
if mo1==1 then gg.alert("arabic") test() end
if mo1== 2 then gg.alert("English") test() end
io.open(gg.EXT_CACHE_DIR.."/something.txt","w"):close()-- making the file that i call before
end
end
end
function test()
mo = gg.choice({"test1","test2","exit"})
if mo == nil then test() else
if mo==1 then gg.alert("test1") test() end 
if mo== 2 then gg.alert("test2") test() end
if mo==3 then
gg.alert("exit")
--os.remove(gg.EXT_CACHE_DIR.."/something.txt")-- if you want you can add this to return to onetimeopen()
os.exit()
end
end
end
onetimework()

 

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.