Yes, u are right. It's because i forgot to use brackets. Haven't used dynamics for a long time hehe. It's also better to use $null instead of !


Code:
on *:text:!command *:#:{
  var %cmd = $gettok($1-,2-,32)
  if (%command. $+ $remove(%cmd,$chr(32)) == $null) {
    set %command. $+ $remove(%cmd,$chr(32)) %cmd
  }
  else {
    inc %command. $+ $remove(%cmd,$chr(32)) $+ .times
  }

  msg $chan %command. [ $+ [ $remove(%cmd,$chr(32)) $+ .times ] ]

}