SA-MP Forums Archive
Need help changing the IRC message but not the In-Game message. - 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: Need help changing the IRC message but not the In-Game message. (/showthread.php?tid=332093)



Need help changing the IRC message but not the In-Game message. - OleKristian95 - 07.04.2012

pawn Код:
{
        new string[128];
        format(string, sizeof string, "{BABABA}[%d]{FFFFFF} %s", playerid, text);
        SendPlayerMessageToAll(playerid, string);
        IRC_GroupSay(gGroupID, IRC_CHANNEL, string);
        IRC_GroupSay(gGroupID2, IRC_ADMINCHANNEL, string);
    }
When I use this it says the ID of a player like it should but in the IRC it shows up like this:

{BABABA}[%d]{FFFFFF} <And what I say>

It dont show my name and it shows the color code instead of a color and it dont show the ':' between the ID and the message I send.

Does anyone know how to fix this?


Re: Need help changing the IRC message but not the In-Game message. - Rob_Maate - 07.04.2012

You can't send a sa-mp color code to an IRC client and expect it will understand you...


Re: Need help changing the IRC message but not the In-Game message. - OleKristian95 - 07.04.2012

Quote:
Originally Posted by Rob_Maate
Посмотреть сообщение
You can't send a sa-mp color code to an IRC client and expect it will understand you...
What I want is it to send for example this: OleKristian95: [ID] [Message]
But instead it sends the color code and the text I write only.


Re: Need help changing the IRC message but not the In-Game message. - OleKristian95 - 07.04.2012

Problem Solved.