Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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