• 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!

Lua Help?

_Aion_

Nothing Else
Joined
Jan 19, 2010
Messages
400
Solutions
4
Reaction score
10
Location
Jequie,Bahia,Brazil
Anyone know help me solve this problem?
Code:
[21/01/2013 21:40:29] [Error - TalkAction Interface] 
[21/01/2013 21:40:29] buffer
[21/01/2013 21:40:29] Description: 
[21/01/2013 21:40:29] data/lib/034-exhaustion.lua:28: field 'day' missing in date table
this happened out of nowhere, it worked perfectly and then it got bad
 
is the same as that comes in distro
but here this
Code:
exhaustion =
{
	check = function (cid, storage)
		if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then
			return false
		end

		return getPlayerStorageValue(cid, storage) >= os.time(t)
	end,

	get = function (cid, storage)
		if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then
			return false
		end

		local exhaust = getPlayerStorageValue(cid, storage)
		if(exhaust > 0) then
			local left = exhaust - os.time(t)
			if(left >= 0) then
				return left
			end
		end

		return false
	end,

	set = function (cid, storage, time)
		setPlayerStorageValue(cid, storage, os.time(t) + time)
	end,

	make = function (cid, storage, time)
		local exhaust = exhaustion.get(cid, storage)
		if(not exhaust) then
			exhaustion.set(cid, storage, time)
			return true
		end

		return false
	end,
}
 
Well, that happend when you executed a talkaction. Wich one?

Also, it is good to mention your Distro also :)

(The more information you giving , the better we could help you)

Regards
 
I guess its something here that doesnt work with ure server
Lua:
	if exhaustion.check(cid, rep.exhaust) then
		doPlayerSendCancel(cid, 'You can\'t use this command yet['..exhaustion.get(cid, rep.exhaust)..'].')
		return true
	else
		exhaustion.set(cid, rep.exhaust, rep.exhaustion)
	end

Best way is to ask Cbrm.

And if it only happend once, just ignore it.
 
Back
Top