Error 035: argument type mismatch (argument 1)
#1

Hi,
a have a little problem in my script. When I want to compile I have such error:
Код:
(480) : error 035: argument type mismatch (argument 1)
Here is my code, if you could tell me what's wrong
I hope you'll do it! Thanks.

Код:
new ColorName[6][20] = {
{"COLOR_WHITE"},
{"COLOR_FADE1"},
{"COLOR_FADE2"},
{"COLOR_FADE3"},
{"COLOR_FADE4"},
{"COLOR_FADE5"},
};
Код:
if(strcmp(cmd, "/write", true) == 0)
	{
		new string[256], tmp[256], kolor;
	    if(IsPlayerConnected(playerid))
	    {
	    	tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "Mode: /write [color-id] [result]");
			}
			kolor = strval(tmp);
			if (IsPlayerAdmin(playerid))
			{
				new length = strlen(cmdtext);
				while ((idx < length) && (cmdtext[idx] <= ' '))
				{
					idx++;
				}
				new offset = idx;
				new result[256];
				while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
				{
					result[idx - offset] = cmdtext[idx];
					idx++;
				}
				result[idx - offset] = EOS;
				if(!strlen(result))
				{
					SendClientMessage(playerid, COLOR_WHITE, "Mode: /write [color-id] [result]");
					return 1;
				}
		   		format(string, sizeof(string), "%s", result);
  Line: 480 			SendClientMessageToAll(ColorName[kolor], string);
				printf("%s", string);
			}
		}
		return 1;
	}
Reply


Messages In This Thread
Error 035: argument type mismatch (argument 1) - by Frankieh' - 23.08.2010, 10:38
Re: Error 035: argument type mismatch (argument 1) - by Nekrus2 - 23.08.2010, 10:49
Re: Error 035: argument type mismatch (argument 1) - by Zh3r0 - 23.08.2010, 10:52
Re: Error 035: argument type mismatch (argument 1) - by Hiddos - 23.08.2010, 10:56
Re: Error 035: argument type mismatch (argument 1) - by Kyosaur - 23.08.2010, 11:05
Re: Error 035: argument type mismatch (argument 1) - by Kyosaur - 23.08.2010, 11:12

Forum Jump:


Users browsing this thread: 1 Guest(s)