Hello! I'm working with SQL Instructions, with SQLLite registry.db
I Wanna make a money update, but its not work!
Look This:
function DinDinBanco(playerSource, command)
local dindin = 5000
local result = executeSQLQuery("UPDATE users SET usermoney = 'usermoney + dindin' WHERE username=?" , playerSource)
if(#result == 1) then
givePlayerMoney ( playerSource, dindin )
outputChatBox("You Got 5000")
else
outputChatBox("Error")
end
end
addCommandHandler("din", DinDinBanco)
Thanks!