MAME does not support (anymore) Hiscore.dat file.
You need to Compile ur own adding the CODES first, so that your complied MAME.EXE supports the DAT file.
I think there are other version that supports it (dunno).
An older MAME (dunno which last version) have support for the DAT file.