To reproduce:
1) Open console and type in any script that involves a "+" command and has a say/say_team/echo at the end. Try the sample script I was using: bind p "+attack; say attack"
2) Hit the key
You will execute an attack and you will say on messagemode1: "attack 112"
The number seems to differ depending on what key to bound it to.
This does not happen when you alias the command, e.g. alias "pap" "+attack; say attack", bind p "pap"
The numbers do not appear when you use a command without a "+", e.g. toggleduck, impulse 10 (the medpack call), or -attack. As long as there is a +command anywhere in the script, and the "say" command is last, the numbers appear.