cryptomeepo
Member
- Joined
- Aug 11, 2021
- Messages
- 61
- Solutions
- 4
- Reaction score
- 14
Trying to update DB when use item but DB is not updating:
Actions:
I missed something?
Actions:
function onUse(player, item, fromPosition, itemEx, toPosition)
db.query("UPDATEtable
SETaccount_id
= '..player:getAccountId()..'")
db.query("UPDATEtable
SETnumber
= '01'")
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You sent 01 to your account.')
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
Item(item.uid):remove(1)
return true
end
I missed something?