<eof> ??

What does this mean?



autorun/server/chat_commands_test.lua:36: '<eof>' expected near 'function'


And my code:
[LUA] require( “chatcommand” )

function CONSOLE:AssId() if (!self:IsValid()) then return “CONSOLE” end end

function FindPlayerSteamOrIP( USERID )

for _, pl in pairs(player.GetAll()) do

	if (pl:TestId() == USERID) then
		return pl
	end

end

return nil

end

function FindPlayerUserID( USERID )

local UID = tonumber(USERID)
if (UID) then
	for _, pl in pairs(player.GetAll()) do

		if (pl:UserID() == UID) then
	
			return pl
	
		end

	end
end

end

return FindPlayerSteamOrIP(USERID)

function FindPlayerName( NAME )

local lNAME = string.lower(NAME)

for _,pl in pairs(player.GetAll()) do
	local name = pl:Nick()
	if (string.lower(string.sub(name, 1, #lNAME)) == lNAME) then
		return pl
	end
end

return FindPlayerUserID(NAME)

end

function FindPlayer( UNIQUEID )

if (!UNIQUEID) then return nil end

local pl = player.GetByUniqueID(UNIQUEID)

if (!pl || !pl:IsValid()) then 
	return FindPlayerName(UNIQUEID)
end

return pl

end

local function KickPlayer( ply, cmd, args )
local target = FindPlayer(args[1])

if target then
	
	target:Kick( "Test" ) 
	
end

end

chatcommand.Add( “kick”, KickPlayer )
concommand.Add( “kick”, KickPlayer )
[/LUA]

eof = end of function, the error means that whoever made the script forgot to put an “end” somewhere.

Yeah, but i don’t see any places that it doesn’t have an end for anywhere near the function on line 36.

You’re returning outside of a function on line 34

eof = end of file.