Jump to content
  • 0

How to fix attendance?


Question

2 answers to this question

Recommended Posts

  • 0
Posted (edited)
4 hours ago, nasagnilac said:

image.png.a67db57fae4fcb6a4cd4aa0cb3b0ea86.pngI have problem with attendance. Its working before not sure why this message appear.

attendance.yml did you edit this one already?

also edit Checkattendance.lua

Config = {
	StartDate = 20190101,
	EndDate = 20191230
}

Reward = {
	{ 1, 22979, 1 },
	{ 2, 6316, 1 },
	{ 3, 12265, 5 },
	{ 4, 23047, 5 },
	{ 5, 23038, 1 },
	{ 6, 23043, 1 },
	{ 7, 23340, 3 },
	{ 8, 12516, 5 },
	{ 9, 23307, 5 },
	{ 10, 12610, 1 },
	{ 11, 14533, 2 },
	{ 12, 23012, 3 },
	{ 13, 23048, 5 },
	{ 14, 12264, 5 },
	{ 15, 23046, 5 },
	{ 16, 12515, 5 },
	{ 17, 12522, 5 },
	{ 18, 12523, 5 },
	{ 19, 25464, 10 },
	{ 20, 22845, 1 }
}

function main()
	result, msg = InsertCheckAttendanceConfig(Config.EvendOnOff, Config.StartDate, Config.EndDate)
	if not result then
		return false, msg
	end
	for k, rewardtbl in pairs(Reward) do
		result, msg = InsertCheckAttendanceReward(rewardtbl[1], rewardtbl[2], rewardtbl[3])
		if not result then
			return false, msg
		end
	end
	return true, "success"
end

 

Edited by noobzter003

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...