SA-MP Forums Archive
Bot Problem - 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)
+--- Thread: Bot Problem (/showthread.php?tid=409712)



Bot Problem - Blackazur - 22.01.2013

[19:58:53] *** IRC_OnDisconnect: Bot ID 1 disconnected from 107.20.61.35:6667 (End of file)
[20:05:13] *** IRC_OnDisconnect: Bot ID 2 disconnected from 107.20.61.35:6667 (End of file)
[20:05:18] *** IRC_OnDisconnect: Bot ID 3 disconnected from 107.20.61.35:6667 (End of file)

Any help?

Please help:

[20:09:38] *** IRC_OnConnectAttempt: Bot ID 2 attempting to connect to 107.20.61.35:6667...
[20:09:38] *** IRC_OnDisconnect: Bot ID 1 disconnected from 107.20.61.35:6667 (End of file)
[20:09:41] *** IRC_OnConnectAttempt: Bot ID 4 attempting to connect to 107.20.61.35:6667...
[20:09:43] *** IRC_OnConnectAttempt: Bot ID 3 attempting to connect to 107.20.61.35:6667...
[20:09:45] *** IRC_OnConnectAttempt: Bot ID 5 attempting to connect to 107.20.61.35:6667...
[20:09:48] *** IRC_OnDisconnect: Bot ID 3 disconnected from 107.20.61.35:6667 (End of file)


Re: Bot Problem - SilverKiller - 22.01.2013

In server.cfg, what does line maxnpc says


AW: Bot Problem - Blackazur - 22.01.2013

maxnpc: 2


Re: Bot Problem - FUNExtreme - 22.01.2013

Could you show your irc connect details. It is most likely caused by a mistake inthere


AW: Bot Problem - Blackazur - 22.01.2013

Код:
#include <a_samp>
// irc.inc from this package
#include <irc>
// sscanf2.inc from the sscanf plugin
#include <sscanf2>

#pragma tabsize 0
#define COLOR_WHITE 0xFFFFFFFF
// Name that everyone will see
#define BOT_1_NICKNAME "ZvS"
// Name that will only be visible in a whois
#define BOT_1_REALNAME "ZvS"
// Name that will be in front of the hostname (username@hostname)
#define BOT_1_USERNAME "ZvS"

#define IRC_PORT (6667)

#define BOT_2_NICKNAME ""
#define BOT_2_REALNAME "ZvS"
#define BOT_2_USERNAME "ZvS"



// Maximum number of bots in the filterscript
#define MAX_BOTS (2)

#define PLUGIN_VERSION "1.4.3"

new botIDs[MAX_BOTS], groupID;



Re: Bot Problem - FUNExtreme - 22.01.2013

Does the script try to connect the second bot? An empty name might be crashing the script.


AW: Bot Problem - Blackazur - 22.01.2013

No, it still work not, every Time this "end of File" Error. Why come this? I saw that other Guys have this Problem too. Why can nobody fix that?


Re: Bot Problem - FUNExtreme - 22.01.2013

You could try printing all raw information sent by the irc server. There might be more information required for the bot to connect succesfully.

You can test if this is the problem by connecting the bots to another network. For example server: irc.tl (where most samp irc channels are)


AW: Bot Problem - Blackazur - 22.01.2013

The comic is recently it still works. And how can i printing?


Re: Bot Problem - FUNExtreme - 22.01.2013

Use the example filterscript that comes with the plugin. It prints EVERYTHING