Need help with a few errors I'm getting in my code
#1

So basically, I'm getting these errors:
Код:
./includes/commands.pwn(6593) : error 035: argument type mismatch (argument 2)
./includes/commands.pwn(6594) : error 035: argument type mismatch (argument 2)
./includes/commands.pwn(6595) : error 035: argument type mismatch (argument 2)
./includes/commands.pwn(6596) : error 035: argument type mismatch (argument 2)
./includes/commands.pwn(6597) : error 035: argument type mismatch (argument 2)
./includes/commands.pwn(6598) : error 035: argument type mismatch (argument 2)
./includes/commands.pwn(6599) : error 035: argument type mismatch (argument 2)
./includes/commands.pwn(6600) : error 035: argument type mismatch (argument 2)
./includes/commands.pwn(6601) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
These are lines 6591-6603:

Код:
CMD:updates(playerid,params[])
{
        SendClientMessage(playerid, COL_LIGHTBLUE, "____________________Server Changes___________________________________________________________");
        SendClientMessage(playerid, COL_GREEN, "Current Version: 1.1");
	SendClientMessage(playerid, COL_GREEN, "/terms was added, used to teach players basic terms.");
	SendClientMessage(playerid, COL_GREEN, "/rules was added, self explanatory.");
	SendClientMessage(playerid, COL_GREEN, "Some help commands were changed up slightly to better fit the user's need.");
	SendClientMessage(playerid, COL_GREEN, "Removed the auto-refund.");
	SendClientMessage(playerid, COL_GREEN, "Fixed some minor bugs.");
	SendClientMessage(playerid, COL_GREEN, "Please give me some suggestions! Thanks in advance, -Nolan.");
	SendClientMessage(playerid, COL_LIGHTBLUE, "_____________________________________________________________________________________________");
	return 1;
}
Can someone please tell me what I'm doing wrong? It's really annoying.
Reply
#2

Check your constants such as COL_GREEN, and COL_LIGHTBLUE. Probably you wanted to use COLOR_GREEN and COLOR_LIGHTBLUE.
Reply
#3

Quote:
Originally Posted by Borg
Посмотреть сообщение
Check your constants such as COL_GREEN, and COL_LIGHTBLUE. Probably you wanted to use COLOR_GREEN and COLOR_LIGHTBLUE.
Thank you so much for pointing that out, that was actually the exact problem. I forgot that this isn't a dialog, but rather an actual sendclientmessage. Thanks man!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)