Oh man, that sounds so funny, but so unfortunate at the same time! Must be a right mess on getting the hiccups when you scratch your ear. Very odd! Just don't tell anyone you know, or they'll end up tickling your ear just to annoy you :tounge:
But apparently there are a few ways to stop hiccups. Like already stated, drink water - though sipping it is what I've heard. Though I suppose it would make more sense to neck it, because hiccups are apparently caused by air under the diaphragm (might displace the air). You can get someone to scare you - that's meant to work. Err, sit with your legs up and your head down, like on a couch / sofa upside down.
I'm not sure if they work, but hope they do and that you get some relief soon!
Moondog 😀