#1

PHP код:
IRCCMD:say(botidchannel[], user[], host[], params[])
{
    if (
IRC_IsOwner(botidchanneluser))
    {
        if (!
isnull(params))
        {
            new 
msg[128];
            
// Echo the formatted message
            
format(msgsizeof(msg), "02*** Owner %s on IRC: %s"userparams);
            
IRC_GroupSay(groupIDchannelmsg);
            
format(msgsizeof(msg), "*** Owner %s on IRC: %s"userparams);
            
SendClientMessageToAll(0x0000FFFFmsg);
        }
    }
    else if (
IRC_IsAdmin(botidchanneluser))
    {
        if (!
isnull(params))
        {
            new 
msg[128];
            
// Echo the formatted message
            
format(msgsizeof(msg), "02*** Management %s on IRC: %s"userparams);
            
IRC_GroupSay(groupIDchannelmsg);
            
format(msgsizeof(msg), "*** Management %s on IRC: %s"userparams);
            
SendClientMessageToAll(0x0000FFFFmsg);
        }
    }
    else if (
IRC_IsHalfop(botidchanneluser)) // back
    
{
        if (!
isnull(params))
        {
            new 
msg[128];
            
// Echo the formatted message
            
format(msgsizeof(msg), "02*** Admin %s on IRC: %s"userparams);
            
IRC_GroupSay(groupIDchannelmsg);
            
format(msgsizeof(msg), "*** Admin %s on IRC: %s"userparams);
            
SendClientMessageToAll(0x0000FFFFmsg);
        }
    }
    else 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*** %s on IRC: %s"userparams);
            
IRC_GroupSay(groupIDchannelmsg);
            
format(msgsizeof(msg), "*** %s on IRC: %s"userparams);
            
SendClientMessageToAll(0x0000FFFFmsg);
        }
    }
    return 
1;

Код:
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3199) : error 001: expected token: "-string end-", but found "-identifier-"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3199) : error 001: expected token: ";", but found "["
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3201) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3203) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3207) : error 021: symbol already defined: "format"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3213) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3215) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3217) : error 021: symbol already defined: "msg"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3219) : error 021: symbol already defined: "format"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3225) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3227) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3229) : error 021: symbol already defined: "msg"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3231) : error 021: symbol already defined: "format"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3237) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3240) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3242) : error 021: symbol already defined: "msg"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3244) : error 021: symbol already defined: "format"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3250) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3258) : warning 203: symbol is never used: "connectionHandle"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3258) : warning 203: symbol is never used: "msg"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


18 Errors.
All errors from codes witch have host[],user[],channel[]

Bump

Bump again !
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: 3 Guest(s)