Argument mismatch on a SendClientMessage...
#1

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
Reply
#2

Your LIGHT_BLUE define probably isn't the propper hex format.
Reply
#3

#define LIGHT_BLUE "{00CED1}"
Reply
#4

#define LIGHT_BLUE (0x00CED1)
Reply
#5

Read https://sampforum.blast.hk/showthread.php?tid=200876 please. You don't need it in quotes because it's not a string.
Reply
#6

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")
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)