Rewrote TTT_Print_Adminreport

I rewrote in admin.lua, the ttt_print_adminreport command, but 1. It’s not drawing the lines all the way down in NP++, and 2. It’s not working in the server. What’s wrong with it?

[lua]function PrintReport(ply)
local pr = GetPrintFn(ply)
ServerLog(Format("%s used ttt_print_adminreport
", IsValid(ply) and ply:Nick() or “console”))

if not ValidEntity(ply) or ply:IsAdmin() then
if ply:Alive() then
if (GetRoundState() == ROUND_ACTIVE) then
if ply:IsSpec() then
for k, e in pairs(SCORE.Events) do
if e.id == EVENT_KILL then
if e.att.uid == -1 then
pr("<something> killed " … e.vic.ni … (e.vic.tr and " [TRAITOR]" or " [inno.]"))
else
pr(e.att.ni … (e.att.tr and " [TRAITOR]" or " [inno.]") … " killed " … e.vic.ni … (e.vic.tr and " [TRAITOR]" or " [inno.]"))
end
end
end
else
pr(“You can only use this command when you’re dead, in spectator mode, or when the round is over.”)
end
elseif (GetRoundState() == ROUND_PREP) then
pr(“The round has not started yet.”)
elseif (GetRoundState() == ROUND_WAIT) then
pr(“The game is in ‘Wait Mode’, so there aren’t any deaths/kills”)
else
for k, e in pairs(SCORE.Events) do
if e.id == EVENT_KILL then
if e.att.uid == -1 then
pr("<something> killed " … e.vic.ni … (e.vic.tr and " [TRAITOR]" or " [inno.]"))
else
pr(e.att.ni … (e.att.tr and " [TRAITOR]" or " [inno.]") … " killed " … e.vic.ni … (e.vic.tr and " [TRAITOR]" or " [inno.]"))
end
end
end
end
else
for k, e in pairs(SCORE.Events) do
if e.id == EVENT_KILL then
if e.att.uid == -1 then
pr("<something> killed " … e.vic.ni … (e.vic.tr and " [TRAITOR]" or " [inno.]"))
else
pr(e.att.ni … (e.att.tr and " [TRAITOR]" or " [inno.]") … " killed " … e.vic.ni … (e.vic.tr and " [TRAITOR]" or " [inno.]"))
end
end
end
end
else
if ValidEntity(ply) then
pr(“You do not appear to be RCON or an admin!”)
end
end
end
concommand.Add(“ttt_print_adminreport”, PrintReport)[/lua]

Edit: For some reason, it decided to work after I reuploaded it. It just won’t draw all the lines in NP++. Weird.