IRC help
#1

Error:
pawn Код:
pandora/irc/irc.pwn(153) : error 001: expected token: "-string end-", but found "-identifier-"
pandora/irc/irc.pwn(153) : error 001: expected token: ";", but found "["
pandora/irc/irc.pwn(155) : error 010: invalid function or declaration
pandora/irc/irc.pwn(157) : error 010: invalid function or declaration
pandora/irc/irc.pwn(165) : error 010: invalid function or declaration
Lines 153 - 165
pawn Код:
IRCCMD:say(botid, channel[], user[], host[], params[])
{
    if (IRC_IsVoice(botid, channel, user))
    {
        if (!isnull(params))
        {
            format(string, sizeof(string), "02 %s on IRC: %s", user, params);
            IRC_GroupSay(groupID, channel, string);
            format(string, sizeof(string), ""CLIGHT"%s on IRC: {FFFFFF}%s", user, params);
            SendClientMessageToAll(0x0000FFFF, msg);
        }
    }
    return 1;
Reply
#2

iam also got that error
Reply
#3

Bump
Reply
#4

Bump, really need help with this.
Reply
#5

Код:
IRCCMD:say(botid, channel[], user[], host[], params[])
{
    if (IRC_IsVoice(botid, channel, user))
    {
        if (!isnull(params))
        {
            format(string, sizeof(string), "02 %s on IRC: %s", user, params);
            IRC_GroupSay(groupID, channel, string);
            format(string, sizeof(string), ""CLIGHT"%s on IRC: {FFFFFF}%s", user, params);
            SendClientMessageToAll(0x0000FFFF, msg);
        }
    }
    return 1;
}
Please //Tag the Lines showing error..
Reply
#6

pawn Код:
IRCCMD:say(botid, channel[], user[], host[], params[])
{
    if (IRC_IsVoice(botid, channel, user))
    {
        if (!isnull(params))
        {
            // Echo the formatted message
            new msg[112];
            format(msg,sizeof(msg), "(IRC) %s: %s", user, params);
            SendClientMessageToAll(COLOR_LIGHTBLUE, msg);
            format(msg, sizeof(msg),"(IRC) %s: %s", user, params);
            Say(channel,msg);
        }
    }
    return 1;
}
And IRC Include : [Change format .pwn To .inc]
Reply
#7

@M0HAMMAD : That seemed to cause more errors:

pawn Код:
pandora/irc/irc.pwn(156) : error 001: expected token: "-string end-", but found "-identifier-"
pandora/irc/irc.pwn(156) : error 001: expected token: ";", but found "["
pandora/irc/irc.pwn(158) : error 010: invalid function or declaration
pandora/irc/irc.pwn(160) : error 010: invalid function or declaration
pandora/irc/irc.pwn(164) : error 021: symbol already defined: "format"
pandora/irc/irc.pwn(168) : error 054: unmatched closing brace ("}")
pandora/irc/irc.pwn(170) : error 010: invalid function or declaration
pawn Код:
IRCCMD:say(botid, channel[], user[], host[], params[])//156
{//157
    if (IRC_IsVoice(botid, channel, user))//158
    {//159
        if (!isnull(params))//160
        {//161
            // Echo the formatted message // 162
            new msg[112]; // 163
            format(msg,sizeof(msg), "(IRC) %s: %s", user, params); // 164
            SendClientMessageToAll(COLOR_LIGHTBLUE, msg); // 165
            format(msg, sizeof(msg),"(IRC) %s: %s", user, params); // 166
            Say(channel,msg); // 167
        } // 168
    } // 169
    return 1; // 170
}// 171
Reply
#8

pawn Код:
IRCCMD:say(botid, channel[], user[], host[], params[])
{
    if (IRC_IsVoice(botid, channel, user))
    {
        if (!isnull(params))
        {
            new string[64], msg[64];
            format(string, sizeof(string), "02 %s on IRC: %s", user, params);
            IRC_GroupSay(groupID, channel, string);
            format(string, sizeof(string), "%s on IRC: {FFFFFF}%s", user, params);
            SendClientMessageToAll(0x0000FFFF, msg);
        }
    }
    return 1;
}
This will work, you've got an issue with your embedded color.
Reply
#9

Still giving the same errors. I wonder why, I used this same command in another script, yet it works perfectly fine.
Reply
#10

Quote:
Originally Posted by Affan
Посмотреть сообщение
Still giving the same errors. I wonder why, I used this same command in another script, yet it works perfectly fine.
Then it's a problem with the include.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)