MySQL loading error

Hello, I got a friend who made that code, and its not working. Its showing no error.

[lua]function FirstSpawn( ply )
tmysql.query(“SELECT Money FROM GCity_Data WHERE SteamID=’”…ply:SteamID()…"’",function(MySQLRes)
if !MySQLRes then
ply:SetMoney(DEFAULT_MONEY)
else
ply:SetMoney(MySQLRes[1][3])
end
end
hook.Add( “PlayerInitialSpawn”, “playerInitialSpawn”, FirstSpawn )[/lua]

Forgot a end:

[lua]function FirstSpawn( ply )
tmysql.query(“SELECT Money FROM GCity_Data WHERE SteamID=’”…ply:SteamID()…"’",function(MySQLRes)
if !MySQLRes then
ply:SetMoney(DEFAULT_MONEY)
else
ply:SetMoney(MySQLRes[1][3])
end
end)
end
hook.Add( “PlayerInitialSpawn”, “playerInitialSpawn”, FirstSpawn )[/lua]

Does that work?