#8

Quote:
Originally Posted by Loinal
Посмотреть сообщение
Look all from this: IRCCMDay(botid, channel[], user[], host[], params[])

Any code have (botid,channel[],user[],host[],params[]) gives these errors
this is mine (from my gamemode) and it's complie fine try it

PHP код:
IRCCMD:say(botidchannel[], user[], host[], params[])
{
    if (
IRC_IsOwner(botidchanneluser))
    {
        
// Check if the user entered any text
        
if (!isnull(params))
        {
            new 
msg[128];
            
// Echo the formatted message
            
format(msgsizeof(msg), "02Owner(%s) on IRC: %s"userparams);
            
IRC_GroupSay(groupIDchannelmsg);
            
format(msgsizeof(msg), "**Owner(%s): %s"userparams);
            
SendClientMessageToAll(COLOR_BLUEmsg);
        }
        return 
1;
    }
    if (
IRC_IsAdmin(botidchanneluser))
    {
        
// Check if the user entered any text
        
if (!isnull(params))
        {
            new 
msg[128];
            
// Echo the formatted message
            
format(msgsizeof(msg), "02Manager(%s) on IRC: %s"userparams);
            
IRC_GroupSay(groupIDchannelmsg);
            
format(msgsizeof(msg), "**Manager(%s): %s"userparams);
            
SendClientMessageToAll(COLOR_BLUEmsg);
        }
        return 
1;
    }
    if (
IRC_IsOp(botidchanneluser))
    {
        
// Check if the user entered any text
        
if (!isnull(params))
        {
            new 
msg[128];
            
// Echo the formatted message
            
format(msgsizeof(msg), "02Admin(%s) on IRC: %s"userparams);
            
IRC_GroupSay(groupIDchannelmsg);
            
format(msgsizeof(msg), "*Admin(%s): %s"userparams);
            
SendClientMessageToAll(COLOR_BLUEmsg);
        }
        return 
1;
    }
    if (
IRC_IsHalfop(botidchanneluser))
    {
        
// Check if the user entered any text
        
if (!isnull(params))
        {
            new 
msg[128];
            
// Echo the formatted message
            
format(msgsizeof(msg), "02Moderator(%s) on IRC: %s"userparams);
            
IRC_GroupSay(groupIDchannelmsg);
            
format(msgsizeof(msg), "*Moderator(%s): %s"userparams);
            
SendClientMessageToAll(COLOR_BLUEmsg);
        }
        return 
1;
    }
    
// Check if the user has at least voice in the channel
    
if (IRC_IsVoice(botidchanneluser))
    {
        
// Check if the user entered any text
        
if (!isnull(params))
        {
            new 
msg[128];
            
// Echo the formatted message
            
format(msgsizeof(msg), "02*VIP(%s) on IRC: %s"userparams);
            
IRC_GroupSay(groupIDchannelmsg);
            
format(msgsizeof(msg), "VIP(%s): %s"userparams);
            
SendClientMessageToAll(COLOR_ORANGEmsg);
        }
        return 
1;
    }
    else
    {
        if (!
isnull(params))
        {
            new 
msg[128];
            
// Echo the formatted message
            
format(msgsizeof(msg), "02[-] 07%s: %s"userparams);
            
IRC_GroupSay(groupIDchannelmsg);
            
format(msgsizeof(msg), "[-] %s: %s"userparams);
            
SendClientMessageToAll(-1msg);
        }
        return 
1;
    }

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)