Public functions cannot return strings. Change the function to a stock and it should compile just fine.
Compiler errors such as this are best handled by CompuPhase, the maintainers of Pawn. You should verify that the crash still occurs in their latest version first, as amxmodx uses an older version, if you want to submit it there.