Argument type mismatch (Type 2)
#1

Code:
if(strcmp(cmd, "/b", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(gPlayerLogged[playerid] == 0)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
	            return 1;
	        }
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[96];
			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, "USAGE: /b [local ooc chat]");
				return 1;
			}
			else
			{
				format(string, sizeof(string), "[L-OOC]%s: %s ", sendername, result);
			}
			ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
		}
		return 1;
is my /b command, and I get the error, can any one help?

===Better?
Reply


Messages In This Thread
Argument type mismatch (Type 2) - by R3G1ST3R - 09.06.2011, 10:41
Re: Argument type mismatch (Type 2) - by yarrum3 - 09.06.2011, 10:43
Re: Argument type mismatch (Type 2) - by R3G1ST3R - 09.06.2011, 10:48
Re: Argument type mismatch (Type 2) - by [DDC]Delight - 09.06.2011, 10:48
Re: Argument type mismatch (Type 2) - by R3G1ST3R - 09.06.2011, 10:50
Re: Argument type mismatch (Type 2) - by [DDC]Delight - 09.06.2011, 10:53
Re: Argument type mismatch (Type 2) - by kazai - 09.06.2011, 10:53
Re: Argument type mismatch (Type 2) - by [DDC]Delight - 09.06.2011, 10:55
Re: Argument type mismatch (Type 2) - by R3G1ST3R - 09.06.2011, 10:57
Re: Argument type mismatch (Type 2) - by R3G1ST3R - 09.06.2011, 10:59

Forum Jump:


Users browsing this thread: 1 Guest(s)