[OperServ (Session limit exceeded)]
Hey Guys,
i've installed Incognitos IRC Plugin (This one) but everytime when the bots connect to my channel at irc.focogaming.com they get killed by OperServ . Код:
[OperServ (Session limit exceeded)] Any Help? |
IRCCMD:say(botid, channel[], user[], host[], params[]) { // Check if the user has at least voice in the channel if (IRC_IsVoice(botid, channel, user)) { // Check if the user entered any text if (!isnull(params)) { new msg[128]; // Echo the formatted message format(msg, sizeof(msg), "02*** %s on IRC: %s", user, params); IRC_GroupSay(gGroupID, channel, msg); format(msg, sizeof(msg), "*** %s on IRC: %s", user, params); SendClientMessageToAll(0x0000FFFF, msg); } } return 1; }
I tried connecting them again and it's working now *weird*
But i still have a problem: Код:
IRCCMD:say(botid, channel[], user[], host[], params[]) { // Check if the user has at least voice in the channel if (IRC_IsVoice(botid, channel, user)) { // Check if the user entered any text if (!isnull(params)) { new msg[128]; // Echo the formatted message format(msg, sizeof(msg), "02*** %s on IRC: %s", user, params); IRC_GroupSay(gGroupID, channel, msg); format(msg, sizeof(msg), "*** %s on IRC: %s", user, params); SendClientMessageToAll(0x0000FFFF, msg); } } return 1; } |
C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(139) : warning 219: local variable "msg" shadows a variable at a preceding level C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(533) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(536) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(541) : error 021: symbol already defined: "format" C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(547) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(613) : warning 219: local variable "msg" shadows a variable at a preceding level C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(649) : warning 219: local variable "msg" shadows a variable at a preceding level C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(681) : warning 219: local variable "msg" shadows a variable at a preceding level C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(941) : warning 203: symbol is never used: "msg"
If i put the code with IRCCMD: say it doesn't work
If i put the code without IRCCMD: say i get 4 Errors Код:
C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(139) : warning 219: local variable "msg" shadows a variable at a preceding level C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(533) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(536) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(541) : error 021: symbol already defined: "format" C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(547) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(613) : warning 219: local variable "msg" shadows a variable at a preceding level C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(649) : warning 219: local variable "msg" shadows a variable at a preceding level C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(681) : warning 219: local variable "msg" shadows a variable at a preceding level C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(941) : warning 203: symbol is never used: "msg" |
//IRC_OnUserSay:
if (IRC_IsVoice(botid, channel, user))
{
// Check if the user entered any text
if (!isnull(message))
{
// Echo the formatted message
new txt[256];
format(txt, sizeof(txt), "*** %s on IRC: %s", user, message);
IRC_GroupSay(gGroupID, channel, txt);
format(txt, sizeof(txt), "*** %s on IRC: %s", user, message);
SendClientMessageToAll(0x0000FFFF, txt);
}
}
C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(533) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(536) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(540) : error 021: symbol already defined: "format" C:\Dokumente und Einstellungen\Administrator\Desktop\Server\filterscripts\irc.pwn(938) : warning 203: symbol is never used: "txt"
new string[256]; format(string, sizeof(string), "IRC%s: %s", user, message); SendClientMessageToAll(0xFFE200FF, string);