/execute @e[type=ArmorStand] ~ ~ ~ /scoreboard players add @e[type=ArmorStand,r=0] test 1
This command works if you type it into chat, but in a command block it returns the error message: " is not a valid number.
/execute @e[type=ArmorStand] ~ ~ ~ /scoreboard players add @e[type=ArmorStand,r=0] test 1
This command works if you type it into chat, but in a command block it returns the error message: " is not a valid number.
Works fine for me. Please double check if you entered the command right. If you did, please attach your world.