SA-MP Forums Archive
Player joining isnt echoing - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player joining isnt echoing (/showthread.php?tid=322158)



Player joining isnt echoing - SnG.Scot_MisCuDI - 01.03.2012

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;
}



Re: Player joining isnt echoing - Walsh - 01.03.2012

Show your IRC_GroupSay function.


Re: Player joining isnt echoing - SnG.Scot_MisCuDI - 01.03.2012

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


Re: Player joining isnt echoing - Min - 01.03.2012

There's nothing wrong with the script. :/


Re: Player joining isnt echoing - SnG.Scot_MisCuDI - 02.03.2012

bump


Re: Player joining isnt echoing - R0FLC0PTER - 02.03.2012

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


Re: Player joining isnt echoing - SnG.Scot_MisCuDI - 02.03.2012

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)