[HELP]IRC Plugin
#1

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)]
Everytime when i try to message to OperServ i get "Access denied" even if i'm identified.

Any Help?
Reply
#2

Quote:
Originally Posted by XoX
Посмотреть сообщение
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)]
Everytime when i try to message to OperServ i get "Access denied" even if i'm identified.

Any Help?
Maybe they do not allow IRC bots?
Try any other server than focogaming
Reply
#3

No, you can only use 3 Connetions. so like 3 Bots
Reply
#4

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;
}
How to autosend (to the samp server) when a user is typing something without using !say?
Reply
#5

Quote:
Originally Posted by XoX
Посмотреть сообщение
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;
}
How to autosend (to the samp server) when a user is typing something without using !say?
By putting code on IRC_OnUserSay callback
Reply
#6

If i put the code with IRCCMD: say it doesn't work (suprise *lol*)
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"
Reply
#7

Quote:
Originally Posted by XoX
Посмотреть сообщение
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"
pawn Код:
//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);
        }
    }
Reply
#8

Gives me that.
Код:
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"
Reply
#9

NO, WRONG! NOT under there, you can add then Where you Like.
Reply
#10

It's fact, that this code is not working!

Does anyone have a solution for this?

Edit: Ok i've made a code
Код:
	new string[256];
	format(string, sizeof(string), "IRC%s: %s", user, message);
	SendClientMessageToAll(0xFFE200FF, string);
It works without using a command but this also make an echo at the samp chat
So if a Player on SAMP types "test" the bot will echo that one too

Any idea?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)