Changes have been requested via PM.
For starters, inconsistent use of semicolons.
new const MDL[MaxMDL] =
I'm surprised this works. You should use  or a constant that will store all of the strings properly.
Unnecessarily long mapname variable. Shorten it to 20 characters and then pass 19 as the max length for get_mapname().
Avoid creating variables in loops.
Meaningless return; this isn't even an FM forward.