#2

error 021: symbol already defined: "msg"

Код:
IRCCMD:say(botid, channel[], user[], host[], params[]) { 
    new msg[150]; 
    if (IRC_IsOwner(botid, channel, user)) { 
        if (!isnull(params)) { 
            // Echo the formatted message 
            format(msg, sizeof(msg), "02*** Owner %s on IRC: %s", user, params); 
            IRC_GroupSay(groupID, channel, msg); 
            format(msg, sizeof(msg), "*** Owner %s on IRC: %s", user, params); 
            SendClientMessageToAll(0x0000FFFF, msg); 
        } 
    } else if (IRC_IsAdmin(botid, channel, user)) { 
        if (!isnull(params)) { 
            // Echo the formatted message 
            format(msg, sizeof(msg), "02*** Management %s on IRC: %s", user, params); 
            IRC_GroupSay(groupID, channel, msg); 
            format(msg, sizeof(msg), "*** Management %s on IRC: %s", user, params); 
            SendClientMessageToAll(0x0000FFFF, msg); 
        } 
    } else if (IRC_IsHalfop(botid, channel, user)) {//back 
        if (!isnull(params)) { 
            // Echo the formatted message 
            format(msg, sizeof(msg), "02*** Admin %s on IRC: %s", user, params); 
            IRC_GroupSay(groupID, channel, msg); 
            format(msg, sizeof(msg), "*** Admin %s on IRC: %s", user, params); 
            SendClientMessageToAll(0x0000FFFF, msg); 
        } 
    } else if (IRC_IsVoice(botid, channel, user)) { 
        // Check if the user entered any text 
        if (!isnull(params)) { 
            // Echo the formatted message 
            format(msg, sizeof(msg), "02*** %s on IRC: %s", user, params); 
            IRC_GroupSay(groupID, channel, msg); 
            format(msg, sizeof(msg), "*** %s on IRC: %s", user, params); 
            SendClientMessageToAll(0x0000FFFF, msg); 
        } 
    } return true; 
}
Reply


Messages In This Thread
[No subject] - by Loinal - 06.01.2017, 07:26
Re: irc - by ISmokezU - 06.01.2017, 10:43
Re: irc - by Loinal - 06.01.2017, 10:53
Re: irc - by iLearner - 06.01.2017, 10:55
Re: irc - by Loinal - 06.01.2017, 10:58
Re: irc - by Vince - 06.01.2017, 11:15
Re: irc - by Loinal - 06.01.2017, 11:21
Re: irc - by Yaa - 06.01.2017, 11:24
Re: irc - by iLearner - 06.01.2017, 11:28
Yaa - by Loinal - 06.01.2017, 11:33

Forum Jump:


Users browsing this thread: 1 Guest(s)