irc admin system problem -
ziggy - 31.01.2014
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
Re: irc admin system problem -
rakshith122 - 31.01.2014
Solved. Hope you are happy now!
Re: irc admin system problem -
ziggy - 31.01.2014
yes i am
Re: irc admin system problem -
ziggy - 31.01.2014
someone please come now,i have this problem with from game text,it double show me
irc.tl port 6667 #IOD
please come
Re: irc admin system problem -
Matt - 31.01.2014
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);
}