Second Line chatting not setting color
#1

Hey, I've made a piece of code to change my admins text to a different color, but when they type long sentences (Run on to the next line) it turns back to the default text color, did I do something wrong??

Example:

pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new output[256];
        GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
        format(str, sizeof(str), "%s(%i)", PlayerName, playerid);
        format(output, sizeof(output),"{A8DBFF}%s", text);
        SetPlayerName(playerid, str);
        SendPlayerMessageToAll(playerid, output);
        #if defined IRC
        format(str, sizeof(str), "0,1[ADMIN]%s(%i)1,0:2 %s", PlayerName, playerid, output);
        IRC_GroupSay(ircGroup, IRC_CHANNEL, output);
        #endif
        session[messages] =  session[messages] + 1;
        SetPlayerName(playerid, PlayerName);
        return 0;
    }
Reply


Messages In This Thread
Second Line chatting not setting color - by Sgt.TheDarkness - 25.08.2012, 00:11
Re: Second Line chatting not setting color - by ddnbb - 25.08.2012, 02:32
Re: Second Line chatting not setting color - by Sgt.TheDarkness - 25.08.2012, 03:13

Forum Jump:


Users browsing this thread: 1 Guest(s)