[HELP] HOW ADD A CLAN CHAT
#1

I have a command for CLAN CHAT BUT DON'T WORK:

pawn Код:
if(strcmp(cmd, "/c", true) == 0 || strcmp(cmd, "/clanchat", true) == 0)
    {
    if(IsPlayerConnected(playerid))
        {
            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, COLOR_WHITE, "USAGE: (/c)lanchat [testo]");
                return 1;
            }
            format(string, sizeof(string), "*** [CLANCHAT] %s *** %s",sendername, result);
            SendClanMessage(playerid, string);
            printf("ClanChat %s: %s", sendername, result);
        }
    return 1;
    }
My clan tag is [DSR]

Please help me
Reply


Messages In This Thread
[HELP] HOW ADD A CLAN CHAT - by Samy_Romafia - 10.08.2010, 07:03
Re: [HELP] HOW ADD A CLAN CHAT - by [NWA]Hannes - 10.08.2010, 07:33
Re: [HELP] HOW ADD A CLAN CHAT - by Samy_Romafia - 10.08.2010, 09:37
Re: [HELP] HOW ADD A CLAN CHAT - by Mike Garber - 10.08.2010, 09:46

Forum Jump:


Users browsing this thread: 1 Guest(s)