What should I do?

EG
A guy says that i'm someone important (as a friend) and yet his actions completely negate his words. Sometimes he's a good friend and sometimes he's a complete jerk. What should I do with a guy like that?