ikarma, you're using a custom chatbox.
Have you tried your code without a custom chat box?
I could imagine it literally printing #A, instead of normal Gmod lua filling in the variable #A with calling player.
Though the code given to you will do what you want off-hand, it won't log the player's 'attack' using ULX log settings, or follow ULX's echo modes.