Irc problem.
#1

Hey guys i have a problem ;s


pawn Код:
#define IRC_ADMINCHANNEL "#testadmin"

dcmd_irc(playerid, params[])
{
    new string[128],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    if(sscanf(params,"s",string)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /irc <text>");
    {
        format(string,sizeof string,"To IRC %s(%d): %s",name,playerid,string);
        IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
        SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
        SendToIrcAdmins(name,string);
    }
    #pragma unused params
    return 1;
}

forward SendToIrcAdmins(player[],reciever[],const string[]);
public SendToIrcAdmins(player[],reciever[],const string[])
{
    new ircstr[180];
    format(ircstr,sizeof(ircstr),"%s",string);
    IRC_GroupSay(gGroupID,IRC_ADMINCHANNEL,ircstr); // line 140 <<
    return 1;
}

pawn Код:
Desertirc.pwn(140) : warning 202: number of arguments does not match definition
Reply
#2

^? anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)