Here's the first couple of lines from my hiscore.dat:
;HISCORE.DAT Version 7.0
;Data for the hi-score routines of MAME
;This file should be in the same directory of MAME.EXE .
I double checked and I do have it in the same directory as MAME.EXE, and it's working fine.
Good Luck.