This function get Creation date from account.
Code:
function getAccountCreationDateById(id)
local Info = db.getResult("SELECT `created` FROM `accounts` WHERE `id` = " .. id .. "")
if Info:getID() ~= LUA_ERROR then
local Created = Info:getDataInt("created")
Info:free()
return Created
end
return LUA_ERROR
end
Last edited: