Jump to content

problem with sqlite


DeathPromT

Recommended Posts

Hello, :)

i have a problem with sqlite saving. It saves money, but doesnt save kills or deaths or whatelse, here's the code:

local sourceName = getPlayerName(source)
local deaths = getElementData(source, 'svnDeaths')
executeSQLUpdate("players", "money = '" .. playerMoney .. "'", "deaths = '" ..deaths.. "'", "name = '" .. sourceName .. "'")

deaths field is created with type INTEGER. These functions are on onPlayerQuit handler. I tried to set deaths field to 10 number, but nothing happens. Oh, and sorry for my bad english :(

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...