SA-MP Forums Archive
argument type mismatch (argument type 2) on sendclientmessage? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: argument type mismatch (argument type 2) on sendclientmessage? (/showthread.php?tid=273061)



argument type mismatch (argument type 2) on sendclientmessage? - Jack_Leslie - 31.07.2011

well, I get the error on this:
pawn Code:
SendClientMessage(playerid, LIGHTRED, "Incorrect Passport ID! Access to Red County Denied.");
Nothing is wrong with it though?


Re: argument type mismatch (argument type 2) on sendclientmessage? - [HiC]TheKiller - 31.07.2011

Make sure that the LIGHTRED colour define is not in quotes.

Also, read THIS


Re: argument type mismatch (argument type 2) on sendclientmessage? - Jack_Leslie - 31.07.2011

Quote:
Originally Posted by [HiC]TheKiller
View Post
Make sure that the LIGHTRED colour define is not in quotes.

Also, read THIS
Yeah, I had a wrong colour define, thankyou.