Think about what the error says... "argument type mismatch"
Looking at the function definition (by the way, 'short' indicates a number)
Code:
native write_short(x);
Usage
x Number to write
So the compiler is expecting a number as an argument and you are giving it a string, hence "argument type mismatch"
You would use write_string() to send a string
__________________