/me and /irc :O
#5

pawn Код:
warning 219: local variable "str" shadows a variable at a preceding level
means that "str" is already a global define. So u dont really to define it again
pawn Код:
if (strcmp("/me", cmdtext, true, 3) == 0)
    {
        if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
        SendClientMessageToAll(COLOR_WHITE, str);
        IRC_GroupSay(gGroupID, IRC_CHANNEL, str);
        IRC_GroupSay(gGroupID, ADMIN_IRC_CHANNEL, str);
        return 1;
    }
Reply


Messages In This Thread
/me and /irc :O - by logoster - 01.05.2012, 00:58
Re: /me and /irc :O - by Joe Staff - 01.05.2012, 01:03
Re: /me and /irc :O - by logoster - 01.05.2012, 17:18
Re: /me and /irc :O - by Mimic - 01.05.2012, 17:19
Re: /me and /irc :O - by SnG.Scot_MisCuDI - 02.05.2012, 01:04
Re: /me and /irc :O - by MP2 - 02.05.2012, 02:20
Re: /me and /irc :O - by logoster - 02.05.2012, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)