Command will not output on to the IRC channel
#1

Hello everyone, I've been coding stuff for the IRC system in my gm, i tried having IRC_GroupSay on OnPlayerText though seems to be somethings wrong with the function...

pawn Код:
CMD:irc(playerid, params[])
{
    new msg[128], string[256];
    if(sscanf(params, "s[128]", msg)) SendUsage(playerid, "/irc [message]");
    else
    {
        Beep(playerid);
        format(string, sizeof(string), "%s(%d): %s", ReturnPlayerName(playerid), playerid, msg);
        IRC_GroupSay(gGroupID, IRC_CHANNEL, string);
       
        SendClientMessage(playerid, COLOR_YELLOW, "(IRC) IRC message sent!");
    }
    return 1;
}
I went in-game and typed this command but the IRC channel didn't recieve anything, does anyone know some cure for this problem?

Thanks, Lorenc_
Reply
#2

Try using IRC_Say instead.. see what happens?
Reply
#3

The parameters of 'IRC_Say' are:
pawn Код:
IRC_Say(botid, const target[], const msg[]);
Group say is to have it send to everyone in the channel though it wouldn't work :@
Reply
#4

You need to but the bot in the channel group or something, take a look at the sample FS
Reply
#5

I had that already, basically copied the settings and stuff from the irc.pwn file given when the plugin is downloaded, I just re-wrote commands and they seem to not work, not sure why
Reply
#6

What is Beep?
Reply
#7

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
The parameters of 'IRC_Say' are:
pawn Код:
IRC_Say(botid, const target[], const msg[]);
Group say is to have it send to everyone in the channel though it wouldn't work :@
const target[] can be channel too.

is the bot even in the channel? try voicing it
Reply
#8

Quote:
Originally Posted by Donya
Посмотреть сообщение
const target[] can be channel too.

is the bot even in the channel? try voicing it
The IRC command works though for some reason now, !say wont work.

The other bot randomly timeouts, what can be the cause of this?

pawn Код:
public IRC_OnJoinChannel(botid, channel[])
{
    IRC_SendRaw(botid, "ns identify ******");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)