Jump to content
  • 0

How to fix attendance?


nasagnilac

Question


  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

Already fixed it. the item is not added in the itemdb that cause the error.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  109
  • Reputation:   5
  • Joined:  03/17/16
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...