Player joining isnt echoing
#1

When a player joins my server it doesnt echo it to IRC

pawn Код:
public OnPlayerConnect(playerid)
{
    new
        joinMsg[128],
        name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(joinMsg, sizeof(joinMsg), "02[%d] 03*** %s has joined the server.", playerid, name);
    IRC_GroupSay(gGroupID, IRC_CHANNEL, joinMsg);
    return 1;
}
The leave message is working however. Compare them if you need
pawn Код:
public
    OnPlayerDisconnect(playerid, reason)
{
    new
        leaveMsg[128],
        name[MAX_PLAYER_NAME],
        reasonMsg[8];
    switch(reason)
    {
        case 0:
        {
            reasonMsg = "Timeout";
        }
        case 1:
        {
            reasonMsg = "Leaving";
        }
        case 2:
        {
            reasonMsg = "Kicked";
        }
    }
    GetPlayerName(playerid, name, sizeof(name));
    format(leaveMsg, sizeof(leaveMsg), "02[%d] 03*** %s has left the server. (%s)", playerid, name, reasonMsg);
    IRC_GroupSay(gGroupID, IRC_CHANNEL, leaveMsg);
    return 1;
}
Reply
#2

Show your IRC_GroupSay function.
Reply
#3

I think its under the include/plugin.. I didnt make the FS :/
Reply
#4

There's nothing wrong with the script. :/
Reply
#5

bump
Reply
#6

Nothing wrong with the code you posted.
But you may have configured your irc wrong.
Reply
#7

Thats what im not understanding. The code is fine. And the ONLY message that wont echo is the join.

Anyone with IRC experience that can help me please contact me on my IRC (in sig)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)