16.03.2025, 10:44
I use a script 1/1/2 to update script of address 1/1/1 example from log(1) to log(2) using those commands:
The update is successful (I see the line log(2) in 1/1/1) but when I change the value of 1/1/1, it still run old script (show 1 in log instead of 2)
How can I fix this? Thank you
Code:
db:update('scripting', {script = nScript}, {id = s.id})
script.disable(s.name)
script.enable(s.name)
script.reload()
The update is successful (I see the line log(2) in 1/1/1) but when I change the value of 1/1/1, it still run old script (show 1 in log instead of 2)
How can I fix this? Thank you