There are many errors in your code.
This line
sprite 1, resolutionx/2, resolutiony-75, 2
would produce a 'Division by Zero' error because resolutionx & y are not global and have not been passed to the function.
However, the code can't get that far because you are missing () from the end of the function declaration for loading the ship.
When it comes to position the ship, you are using this code:
Which translates as
Because there are no variables called res, x or y "res-x" & "res-y" are just things that you have printed to screen.