error 035: argument type mismatch (argument 1) /2 /3
#1

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.
Reply
#2

Say the lines than have the errors...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)