How do I help this? (Hair and scalp questions !)

Brittany

The two pictures I’m putting on here is stuff that comes off of my scalp after scratching it. It also comes off like pieces of salt but are more oily. I’ve treated dandruff shampoo AND tea tree oil shampoo, and neither 100% help. Is there something I am missing?