"/me" bugged
#2

Why not just use:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(!strcmp(cmdtext, "/me", true, 3)) // 3 is the length of /me
  {
    if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
    new str[128];
    GetPlayerName(playerid, str, sizeof(str));
    format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
    SendClientMessageToAll(0xFFFF00AA, str);
    return 1;
  }
  return 0;
}
from https://sampwiki.blast.hk/wiki/Using_strcmp%28%29??
Reply


Messages In This Thread
"/me" bugged - by Chriham3 - 13.03.2010, 16:59
Re: "/me" bugged - by Naxix - 13.03.2010, 17:04
Re: "/me" bugged - by Chriham3 - 13.03.2010, 17:14
Re: "/me" bugged - by Naxix - 13.03.2010, 17:16
Re: "/me" bugged - by MenaceX^ - 13.03.2010, 17:21
Re: "/me" bugged - by Chriham3 - 13.03.2010, 17:36

Forum Jump:


Users browsing this thread: 1 Guest(s)