Untitled

From Anorexic Cheetah, 9 Years ago, written in Lua, viewed 615 times. This paste will self destruct in 1 Second.
URL https://paste.godclan.hu/view/5BnWESjd Embed
Download Paste or View Raw
  1. local mt {
  2.     __newindex = function (t,k,v)
  3.         print("*update of element " .. tostring(k) ..   " to " .. tostring(v))
  4.         t[index][k] = v   -- update original table
  5.         dbExec(handler,"UPDATE GTO_gangs set " .. tostring(k) .. "=? where id =?",v,
  6.        
  7.        
  8.     end
  9.        
  10.  
  11. }
  12.  

Reply to "Untitled"

Here you can reply to the paste above