Need help with player connection output

I am trying to get the server to output things to the console as you will see in my code.

Code:


GM.Name = "WorkInProgress"
GM.Author = "Chang"
GM.Website = "www.GFLClan.com"

function GM:PlayerConnect( name, ip )
	print("Player: " .. name .. " has joined the game." )
end

function GM:PlayerInitialSpawn( ply )
	print("Player: " .. ply:Nick() .. " has spawned."
end

function GM:PlayerAuthed( ply, steamID, uniqueID )
	print("Player: " .. ply:Nick() .. " has gotten authenticated with " .. steamID .. " ."
end

But I keep getting this error in my console instead of the results I want…

http://puu.sh/dxHIM/cd102a0dc5.png

Well, clearly the error is obvious.

You know what, lets teach you to read errors.

You see, the error message is “shared.lua, line 11, symbol “)” expected”

Not lets see your code at line 11:


print("Player: " .. ply:Nick() .. " has spawned."

Something is missing, right? Can you guess what?

the error is literally telling you in plain english what the problem is

Thanks. Lol couldn’t believe I was so blind.