Argument mismatch on a 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 mismatch on a SendClientMessage... (
/showthread.php?tid=270070)
Argument mismatch on a SendClientMessage... -
slymatt - 18.07.2011
Why am i getting
Код:
error 035: argument type mismatch (argument 2)
On this...
Код:
SendClientMessage(playerid, LIGHT_BLUE, "Welcome to Alternate Reality");
Im sure thats 100% right......
thanks for your time
Re: Argument mismatch on a SendClientMessage... -
[HiC]TheKiller - 18.07.2011
Your LIGHT_BLUE define probably isn't the propper hex format.
Re: Argument mismatch on a SendClientMessage... -
slymatt - 18.07.2011
#define LIGHT_BLUE "{00CED1}"
Re: Argument mismatch on a SendClientMessage... -
Daren_Jacobson - 18.07.2011
#define LIGHT_BLUE (0x00CED1)
Re: Argument mismatch on a SendClientMessage... -
[HiC]TheKiller - 18.07.2011
Read
https://sampforum.blast.hk/showthread.php?tid=200876 please. You don't need it in quotes because it's not a string.
Re: Argument mismatch on a SendClientMessage... -
slymatt - 18.07.2011
I added the colours how that page said i now get
Код:
: warning 201: redefinition of constant/macro (symbol "COLOUR_RED")
C:\Users\mattt\Desktop\New\gamemodes\TESTING.pwn(23) : warning 201: redefinition of constant/macro (symbol "COLOUR_GREEN")
C:\Users\mattt\Desktop\New\gamemodes\TESTING.pwn(24) : warning 201: redefinition of constant/macro (symbol "COLOUR_BLUE")
C:\Users\mattt\Desktop\New\gamemodes\TESTING.pwn(25) : warning 201: redefinition of constant/macro (symbol "COLOUR_CYAN")
C:\Users\mattt\Desktop\New\gamemodes\TESTING.pwn(26) : warning 201: redefinition of constant/macro (symbol "COLOUR_MAGENTA")
C:\Users\mattt\Desktop\New\gamemodes\TESTING.pwn(27) : warning 201: redefinition of constant/macro (symbol "COLOUR_YELLOW")
Re: Argument mismatch on a SendClientMessage... -
slymatt - 18.07.2011
Thats my fault =P sorted it now i copyed all the colours without reading it right they where two different sets of colours RGB and RGBA =P Thanks for the help its working now