mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-22 20:31:46 +00:00
Fixed inconsistency between database and script
This commit is contained in:
parent
f54e5aec36
commit
87ece57322
2 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ function commandListLevels(clientId, cmdArguments)
|
||||||
else
|
else
|
||||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dLevels for ^7"..et.gentity_get(cmdClient, "pers.netname").."^d:\";")
|
et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dLevels for ^7"..et.gentity_get(cmdClient, "pers.netname").."^d:\";")
|
||||||
for id, level in pairs(levels) do
|
for id, level in pairs(levels) do
|
||||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^f"..string.format("%4s", level["id"]).." ^7"..string.format("%-20s", util.removeColors(db.getlastalias(level["admin_id"])["alias"])).." ^f"..os.date("%d/%m/%Y", level["datetime"]).." ^7"..level["level_id"].."\";")
|
et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^f"..string.format("%4s", level["id"]).." ^7"..string.format("%-20s", util.removeColors(db.getlastalias(level["invoker_id"])["alias"])).." ^f"..os.date("%d/%m/%Y", level["datetime"]).." ^7"..level["level_id"].."\";")
|
||||||
end
|
end
|
||||||
|
|
||||||
et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^9Showing results ^7"..(offset + 1).." ^9- ^7"..limit.." ^9of ^7"..count.."^9.\";")
|
et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^9Showing results ^7"..(offset + 1).." ^9- ^7"..limit.." ^9of ^7"..count.."^9.\";")
|
||||||
|
|
|
@ -172,8 +172,8 @@ function sqlite3.getlastalias(playerid)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- level history
|
-- level history
|
||||||
function sqlite3.addsetlevel(playerid, level, adminid, datetime)
|
function sqlite3.addsetlevel(playerid, level, invokerid, datetime)
|
||||||
cur = assert(con:execute("INSERT INTO `player_level` (`player_id`, `level_id`, `admin_id`, `datetime`) VALUES ("..tonumber(playerid)..", "..tonumber(level)..", "..tonumber(adminid)..", "..tonumber(datetime)..")"))
|
cur = assert(con:execute("INSERT INTO `player_level` (`player_id`, `level_id`, `invoker_id`, `datetime`) VALUES ("..tonumber(playerid)..", "..tonumber(level)..", "..tonumber(invokerid)..", "..tonumber(datetime)..")"))
|
||||||
end
|
end
|
||||||
|
|
||||||
function sqlite3.getlevelscount(playerid)
|
function sqlite3.getlevelscount(playerid)
|
||||||
|
|
Loading…
Reference in a new issue