Talk to them. It might be difficult, and you might not know what to say, but it's extremely important that you talk to them. Self-harm is a very ambiguous way of getting attention - a scar that says "I hate you" looks exactly like a scar that says "I need you, please help me." You've got to let them know what you need.