This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Edit script but it still run old script
#12
(17.03.2025, 10:20)admin Wrote: Use this:
Code:
scriptid = 23
scriptcode = [[
log('1234')
]]

params = {
  data = {
    id = scriptid,
    scriptonly = true,
  },
  script = scriptcode
}

webrequest = require('webrequest')
res, err = webrequest('scripting', 'save', params)

Sadly it didnt work. I also try to run your whole code alone but it the script which has ID = 23 didnt change to log('1234')
Reply


Messages In This Thread
RE: Edit script but it still run old script - by pouralise - 17.03.2025, 13:22

Forum Jump: