Jump to content
  • 0

another online script


MilkyGT

Question

gg.sleep('1600')
API = gg.makeRequest('Link').content
if not API then
gg.alert('❗️WHY YOU CANCEL ❗️\n\nThis is online script you need a internet to access')
noselect()
else
pcall(load(API))
end

if status == "Off" then
  gg.alert('❗ SCRIPT MAINTENANCE ❗\n\nScript is under maintenance please comeback later\n\n')
  os.exit()
end

i got that example from ZtzTopia can anyone explain why this script crash when exit, and How to make this script Maintenance(closed) 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • Administrators

A script is always code. Regardless of whether you download part of it from the server, or whether it is all at once in the file.
So everything is the same there and there are no differences.
You can imagine that what you are downloading is already in the string variable. Hence, try to write a script.
And then add a check that the script could not be downloaded in the nil variable.

Examples are in the scripts section.

Link to comment
Share on other sites

2 hours ago, MilkyGT said:

if status == "Off" then gg.alert('❗ SCRIPT MAINTENANCE ❗\n\nScript is under maintenance please comeback later\n\n') os.exit() end

if API == "Maintenance" then 
  return os.exit(print("Script Still Maintenance\n Try Another Time"))

 

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.