irc admin system problem
#1

hey guys
i want to use this irc admin script and i added it but all what i see its double,when i do !say it say double(2x) and all what i can see from game is double too,please see where is mistake
http://pastebin.com/gErvZAQW
thank you
Reply
#2

Solved. Hope you are happy now!
Reply
#3

yes i am
Reply
#4

someone please come now,i have this problem with from game text,it double show me
irc.tl port 6667 #IOD
please come
Reply
#5

Your code is a bit messed up, change this:

From:
Код:
public OnFilterScriptInit()
{
 
        botIDs[0] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_1_NICKNAME, BOT_1_REALNAME, BOT_1_USERNAME);
        IRC_SetIntData(botIDs[0], E_IRC_CONNECT_DELAY, 1);
 
        botIDs[1] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_2_NICKNAME, BOT_2_REALNAME, BOT_2_USERNAME);
        IRC_SetIntData(botIDs[1], E_IRC_CONNECT_DELAY, 1);
       
        botIDs[1] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_3_NICKNAME, BOT_3_REALNAME, BOT_3_USERNAME);
        IRC_SetIntData(botIDs[1], E_IRC_CONNECT_DELAY, 1);
       
        botIDs[1] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_4_NICKNAME, BOT_4_REALNAME, BOT_4_USERNAME);
        IRC_SetIntData(botIDs[1], E_IRC_CONNECT_DELAY, 1);
       
        botIDs[1] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_5_NICKNAME, BOT_5_REALNAME, BOT_5_USERNAME);
        IRC_SetIntData(botIDs[1], E_IRC_CONNECT_DELAY, 1);
        groupID = IRC_CreateGroup();
}
To:
Код:
public OnFilterScriptInit()
{
 
        botIDs[0] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_1_NICKNAME, BOT_1_REALNAME, BOT_1_USERNAME);
        IRC_SetIntData(botIDs[0], E_IRC_CONNECT_DELAY, 1);
 
        botIDs[1] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_2_NICKNAME, BOT_2_REALNAME, BOT_2_USERNAME);
        IRC_SetIntData(botIDs[1], E_IRC_CONNECT_DELAY, 1);
       
        botIDs[2] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_3_NICKNAME, BOT_3_REALNAME, BOT_3_USERNAME);
        IRC_SetIntData(botIDs[2], E_IRC_CONNECT_DELAY, 1);
       
        botIDs[3] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_4_NICKNAME, BOT_4_REALNAME, BOT_4_USERNAME);
        IRC_SetIntData(botIDs[3], E_IRC_CONNECT_DELAY, 1);
       
        botIDs[4] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_5_NICKNAME, BOT_5_REALNAME, BOT_5_USERNAME);
        IRC_SetIntData(botIDs[4], E_IRC_CONNECT_DELAY, 1);
        groupID = IRC_CreateGroup();
}
From:
Код:
public OnFilterScriptExit()
{
        IRC_Quit(botIDs[0], "Filterscript exiting");
        IRC_Quit(botIDs[1], "Filterscript exiting");
        IRC_DestroyGroup(groupID);
}
To:
Код:
public OnFilterScriptExit()
{
        IRC_Quit(botIDs[0], "Filterscript exiting");
        IRC_Quit(botIDs[1], "Filterscript exiting");
        IRC_Quit(botIDs[2], "Filterscript exiting");
        IRC_Quit(botIDs[3], "Filterscript exiting");
        IRC_Quit(botIDs[4], "Filterscript exiting");
        IRC_DestroyGroup(groupID);
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)