• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

getAccountCreationDateById(id)

Deamon

New Member
Joined
Jun 1, 2007
Messages
167
Reaction score
0
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:
in what distribution and database could this be used for?

TFS database have no such column as 'created'.

Boy67
 
in what distribution and database could this be used for?

TFS database have no such column as 'created'.

Boy67

Partially you're right - TFS' database doesn't have such column
but TFS' + Gesior Acc Database Does ;p I believe that 95% of ots based on TFS use Gesiors Acc ( don't know what about Nicaw;P )


Btw. Thanks for function, could be useful for me ;))

GM Lee ;)
 
Back
Top