mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-25 05:31:41 +00:00
Fixed SQLite error (unknown value for column)
This commit is contained in:
parent
0d5e1ceaca
commit
7e0b9c5aba
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ local cur
|
|||
|
||||
-- players
|
||||
function sqlite3.addplayer(guid, ip, lastSeen, seen)
|
||||
cur = assert(con:execute("INSERT INTO `player` (`guid`, `ip`, `level_id`, `lastseen`, `seen`) VALUES ('"..util.escape(guid).."', '"..util.escape(ip).."', "..tonumber(lastSeen)..", "..tonumber(seen)..")"))
|
||||
cur = assert(con:execute("INSERT INTO `player` (`guid`, `ip`, `level_id`, `lastseen`, `seen`) VALUES ('"..util.escape(guid).."', '"..util.escape(ip).."', 0, "..tonumber(lastSeen)..", "..tonumber(seen)..")"))
|
||||
end
|
||||
|
||||
function sqlite3.updateplayer(guid, ip, lastSeen)
|
||||
|
|
Loading…
Reference in a new issue