Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1.     local exec, row, id = dbPoll(dbQuery(connection, "INSERT INTO interiors SET int_data = ?, entrance = ?, exit = ?, owner_data = ?, rental_data = ?, lastmodified = ?, createdat = ?", toJSON({type=toTypeName[type], price=price, name=name, locked=0}), toJSON({x = pos.x, y = pos.y, z = pos.z, int = int, dim = dim}), toJSON({}), toJSON({id=getElementData(owner, "acc >> id"), name=getElementData(owner, "char >> name")}), (rent and toJSON({rentable=true, rentedby=false, renteduntil=false}) or toJSON({rentable=false, rentedby=false, renteduntil=false}))), 30000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement