SA-MP Forums Archive
error 035: argument type mismatch (argument 1) /2 /3 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 035: argument type mismatch (argument 1) /2 /3 (/showthread.php?tid=346275)



error 035: argument type mismatch (argument 1) /2 /3 - Havic - 27.05.2012

Hello guys,I using Incognito IRC plugin and I'd like to add this command:

Код:
IRCCMD:trace(botid, channel[], user[], host[], params[])
{
	if(IRC_IsOp(botid, channel, user))
	{
	    new TraceIP;
	    if(sscanf(params, "d", TraceIP))
	    {
	        IRC_Notice(gGroupID, user, "You did not enter an IP address.");
		}
		else
		{
		    HTTP(user, HTTP_POST, "ip-adress.com/ip_tracer/", TraceIP, "TraceAddress");  -Line 1201
			IRC_Say(gGroupID, user, "Trace request sent, Please wait..");
		}
	}
	return 1;
}

forward TraceAddress(index, response_code, data[]);
public TraceAddress(index, response_code, data[])
{
    new buffer[ 128 ];
    if(response_code == 200) //Did the request succeed?
    {
        //Yes!
        format(buffer, sizeof(buffer), " IP Trace complete: %s", data);
		IRC_Say(gGroupID,index,buffer);     -Line 1215
    }
    else
    {
        //No!
        format(buffer, sizeof(buffer), " IP Trace failed: Could not connect to service. (%d)", response_code);
        IRC_Say(gGroupID,index,buffer);    -Line 1221
    }
	return 1;
}
But I get 3 errors,


SA MP\Server\filterscripts\irc.pwn(1201) : error 035: argument type mismatch (argument 1)
SA MP\Server\filterscripts\irc.pwn(1215) : error 035: argument type mismatch (argument 2)
SA MP\Server\filterscripts\irc.pwn(1221) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


Please help me how to solve this ^

Thanks.


Re: error 035: argument type mismatch (argument 1) /2 /3 - LukisHard - 28.05.2012

Say the lines than have the errors...