SA-MP Forums Archive
[HELP]IRC Plugin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]IRC Plugin (/showthread.php?tid=209404)



[HELP]IRC Plugin - XoX - 10.01.2011

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?


Re: [HELP]IRC Plugin - *IsBack - 10.01.2011

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


Re: [HELP]IRC Plugin - Fool - 10.01.2011

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


Re: [HELP]IRC Plugin - XoX - 10.01.2011

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?


Re: [HELP]IRC Plugin - *IsBack - 10.01.2011

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


Re: [HELP]IRC Plugin - XoX - 10.01.2011

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"



Re: [HELP]IRC Plugin - *IsBack - 10.01.2011

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);
        }
    }



Re: [HELP]IRC Plugin - XoX - 10.01.2011

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"



Re: [HELP]IRC Plugin - Fool - 10.01.2011

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


Re: [HELP]IRC Plugin - XoX - 11.01.2011

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?