So whenever I got to Markarth the guards attack me. They don't even tell me to pay the fine or try to take me to jail... srsly wtf? I also have 0 bounty in the reach. Plz halp. I tried consule commands and didn't help.

This happened to me. The reason was a vampire attack had occurred and had killed several guards, whilst the other guards were budy beheading a guard (This was in soliture). Luckily, I found that sneaking and standing in a corner prevented them from becoming aggressive once the execution had finished, but I ended discovering the massive pile of dead guard bodies later.