Unexpected function type. You are trying to create function, but the script actually creates function. The function type ...

Unexpected function type.  You are trying to create <0p/a scalar//><1p/an inline//><2p/a table-valued//> function, but the script actually creates <3p/a scalar//><4p/an inline//><5p/a table-valued//> function.  The function type created must match the initial function type selected on the menu.