Sendername Twice in OOC chat?
#1

Hi! When I type /o for OOC chat for my RP server it Lists the senders name twice. EG: 'Bob_Bobby: ((Bob_Bobby MESSAGE))'. How do I make it that the first Bob Bobby is removed to leave only the brackets and its contents?

Code:
pawn Код:
if(PlayerInfo[playerid][pAdmin] == 0)
            {
                format(string, sizeof(string), "(( %s %s ))", sendername, result);
            }
            else
            {
                format(string, sizeof(string), "[[ %s %s ]]", sendername, result);
            }
            SendPlayerMessageToAll(playerid, string);
            new year,month,day;
            getdate(year, month, day);
            new hour, minute, second;
            gettime(hour,minute,second);
            format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (OOC): (%s)",day,month,year,hour,minute,second, sendername, result);
            PublicLog(string);
        }
Reply


Messages In This Thread
Sendername Twice in OOC chat? - by MrSnapp - 17.02.2013, 09:42
Re: Sendername Twice in OOC chat? - by iManakoss - 17.02.2013, 09:54
Re: Sendername Twice in OOC chat? - by reckst4r - 17.02.2013, 10:12
Re: Sendername Twice in OOC chat? - by jessejanssen - 17.02.2013, 10:22
Re: Sendername Twice in OOC chat? - by Mean - 17.02.2013, 10:26

Forum Jump:


Users browsing this thread: 1 Guest(s)