I found the cause of my problem. I am using a thing called Total Control, which allows you to do a lot more things right from the game, such as switching people's teams, screenshots and more. In order to do this, I had to store my rcon pw in my game by typing: rconpassword (password). I hadn't realized that after that, I had to omit the password for any commands I did in the console.
