I need help
#4

Here,

You can use mine:

pawn Код:
if(strcmp(cmd, "/me", true) == 0)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        new length = strlen(cmdtext);
        while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
        new offset = idx;
        new result[64];
        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
        result[idx - offset] = EOS;
        if(!strlen(result))
            {
                SendClientMessage(playerid, red, "USAGE: /me [action]");
                return 1;
            }
            else
            {
                format(string, sizeof(string), "* %s %s", sendername, result);
            }
        ProxDetector(30.0, playerid, string, red,red,red,red,red);
        printf("%s", string);
        return 1;
        }
Reply


Messages In This Thread
I need help - by pablodc - 25.08.2009, 19:50
Re: I need help - by Joe Staff - 25.08.2009, 19:55
Re: I need help - by The_Tough - 25.08.2009, 19:56
Re: I need help - by Memoryz - 25.08.2009, 19:59
Re: I need help - by XtremeChio - 25.08.2009, 20:03
Re: I need help - by pablodc - 25.08.2009, 20:04
Re: I need help - by speedruntrainer - 25.08.2009, 20:17
Re: I need help - by pablodc - 25.08.2009, 20:27

Forum Jump:


Users browsing this thread: 3 Guest(s)