23.07.2011, 15:58
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...
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_
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;
}
Thanks, Lorenc_