Little Help With RegEx
#3

Quote:
Originally Posted by mineralo
Посмотреть сообщение
pawn Код:
if(!strcmp(cmdtext, "/me", true, 3))
    {
        if(!cmdtext[3])return SendClientMessage(playerid, 0xFFFF00AA, "USAGE: /me [action]");
        if(strlen(cmdtext) > limite) return SendClientMessage(playerid,-1,"Too long message");// add limite
        new str[128];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "%s %s", str, ReturnText(cmdtext[4]));
        SendClientMessageToAll(0x400080FF, str);
        return 1;
    }
Thanks

Good to go
Reply


Messages In This Thread
Little Help With RegEx - by [AU]Ownage - 14.01.2013, 15:18
Re: Little Help With RegEx - by mineralo - 14.01.2013, 15:21
Re: Little Help With RegEx - by [AU]Ownage - 14.01.2013, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)