Argument type mismatch (argument 1)
#1

I'm getting the Argument type mismatch (argument 1) error on this piece of code, specifically the "SendClientMessageToAll line. I can't figure out what's wrong with it.
Код:
CMD:O(playerid, params[])
{
	new sendername[MAX_PLAYER_NAME], string[128];
	GetPlayerName(playerid, sendername, sizeof(sendername));
	format(string, sizeof(string), "(( %s: %s ))", sendername, params);
	SendClientMessageToAll(COL_LIGHTBLUE, string);
	return 1;
}
Can anyone tell me what's wrong with it? Any help is appreciated, thanks.
Reply
#2

Show us where you define COL_LIGHTBLUE, please. By the way, it must be in the format: 0xFFFFFFF. Where the 6 "F"s are a hex code
Reply
#3

#define COL_LIGHTBLUE "{00C0FF}"

I see where I went wrong, and what the problem is. Thanks for your help!
Reply
#4

why are you using CMD:O shouldnt it be
Код:
CMD:o
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)