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
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;
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; }
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;
}
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
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
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;
}
Still giving the same errors. I wonder why, I used this same command in another script, yet it works perfectly fine.
|