Thread: [Solved] Argument type mismatch
View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-24-2021 , 21:50   Re: Argument type mismatch
Reply With Quote #2

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
__________________

Last edited by Bugsy; 05-24-2021 at 21:51.
Bugsy is offline