/announce help
#2

pawn Код:
if(strcmp(cmd, "/announce", true) == 0)
        {
            new length = strlen(cmdtext);
            new idx;
            new string[128];
            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_GRAD2, "USAGE: /announce [TEXT]");
                return 1;
            }
            format(string,sizeof(string), "| Announcement: | %s", result);
            SendClientMessageToAll(COLOR_YELLOW,tString);
        return 1;
    }
Reply


Messages In This Thread
/announce help - by GTA_Rules - 20.03.2009, 17:40
Re: /announce help - by Think - 20.03.2009, 18:27
Re: /announce help - by GTA_Rules - 20.03.2009, 18:29
Re: /announce help - by MenaceX^ - 20.03.2009, 18:44
Re: /announce help - by GTA_Rules - 20.03.2009, 19:35
Re: /announce help - by Rks25 - 20.03.2009, 22:19
Re: /announce help - by MenaceX^ - 20.03.2009, 22:28
Re: /announce help - by Nero_3D - 20.03.2009, 23:02
Re: /announce help - by Zack9764 - 21.03.2009, 00:13
Re: /announce help - by Rks25 - 21.03.2009, 10:25

Forum Jump:


Users browsing this thread: 2 Guest(s)