Guest User

Untitled

a guest
Feb 14th, 2020
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local result = dbPoll(qh, 0, true)[2][1][1]
  2.  
  3. if result then
  4. addItemEx(sourceElement, result.dbID, result.slot, result.itemId, result.amount, result.data1, result.data2, result.data3)
  5.  
  6. triggerItemEvent(sourceElement, "addItem", getElementType(sourceElement), result)
  7. end
  8. end
  9. end, {sourceElement}, connection, "INSERT INTO items (itemId, slot, amount, data1, data2, data3, ownerType, ownerId) VALUES (?,?,?,?,?,?,?,?); SELECT * FROM items ORDER BY dbID desc LIMIT 1", itemId, slotId, amount, data1, data2, data3, ownerType, ownerId
Advertisement
Add Comment
Please, Sign In to add comment