You're getting these errors because you're using variables that don't exist. Like on line 1193 and 1194:
ConsoleInfoPrint(client, admin, reason, time, auth, ip);
KickClient(client, "Banned by %s, \nAdmin SteamID: %s\nComplains at %s, \nReason: %s, \nLength: %s, \nSteamid:%s, \nIp:%s", admin, adminAuth, WebsiteAddress, reason, time, auth, ip);
You need to read auth, ip and adminAuth from the datapack first.
Also admin and time are integers, but you're passing them as strings to ConsoleInfoPrint and KickClient.