[Solved]Problem with /me messages always showing black
#1

Hello, I have a problem. The /me message colors are always black. And NOT from the players color.
This is the code:

pawn Код:
if(!strcmp(cmdtext, "/me", true, 3)) // 3 is the length of /me
  {
    if(cmdtext[3] == 0) {
      SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
      return 1;
    }
    new str[128];
    new playerColor;
    GetPlayerName(playerid, str, sizeof(str));
    format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
    GetPlayerColor(playerid);
    SendClientMessageToAll(playerColor, str);
    return 1;
    }
Can someone help me? Thanks.
Reply


Messages In This Thread
[Solved]Problem with /me messages always showing black - by speedruntrainer - 19.08.2009, 18:01
Re: Problem with /me messages always showing black - by member - 19.08.2009, 18:03
Re: Problem with /me messages always showing black - by speedruntrainer - 19.08.2009, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)