#10

Quote:
Originally Posted by Yaa
Посмотреть сообщение
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;
    }

Код:
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3183) : error 001: expected token: "-string end-", but found "-identifier-"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3183) : error 001: expected token: ";", but found "["
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3184) : error 001: expected token: "-string end-", but found "-identifier-"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3184) : error 029: invalid expression, assumed zero
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3187) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3201) : error 001: expected token: "-string end-", but found "-identifier-"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3201) : error 001: expected token: ";", but found "["
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3203) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3206) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3210) : error 021: symbol already defined: "format"
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 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3220) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3222) : error 021: symbol already defined: "msg"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3224) : error 021: symbol already defined: "format"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3229) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3231) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3234) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3236) : error 021: symbol already defined: "msg"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3238) : error 021: symbol already defined: "format"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3243) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3245) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3248) : error 010: invalid function or declaration
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3250) : error 021: symbol already defined: "msg"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3252) : error 021: symbol already defined: "format"
D:\samp folder\(XteMeS) xMs\gamemodes\xMs.pwn(3257) : error 010: invalid function or declaration

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
bump
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: 5 Guest(s)