#1

Okay, I'm screwed up. Help me, it isn't connecting any bot to the irc.
EDIT: Updated it with Kiwi now, still the same.
PHP код:
#define BOT_1_NICKNAME "[0]CoastCityRP"
#define BOT_1_REALNAME "CoastCityRoleplaySAMP" // This is the name that will only be visible in a whois
#define BOT_1_USERNAME "Anonymous" // This will be in front of the hostname (username@hostname)
#define BOT_2_NICKNAME "[1]CoastCityRP"
#define BOT_3_NICKNAME "[2]CoastCityRP"
#define IRC_SERVER "irc.kiwiirc.com"
#define IRC_PORT 6667
#define IRC_CHANNEL "#CoastCityRoleplay"
#define IRC_IDLE "#CoastCityRoleplay"
#define IRC_LIVE "#CoastCityRoleplay"
public OnGameModeInit()
{
     
gBotID[0] = IRC_Connect(IRC_SERVERIRC_PORTBOT_1_NICKNAMEBOT_1_REALNAMEBOT_1_USERNAME);
     return 
1;
}
public 
IRC_OnConnect(botid)
{
    
printf("*** IRC_OnConnect: Bot ID %d connected!"botid);
    
SetTimerEx("IRC_JoinDelay"10000"d"botid);
    
IRC_JoinChannel(botidIRC_CHANNEL);
    
IRC_JoinChannel(botidIRC_IDLE);
    
IRC_JoinChannel(botidIRC_LIVE);
    
IRC_AddToGroup(gGroupIDbotid); // Add the IRC bot to the group
    
return 1;

Reply
#2

As far as I know you can't have the ' character in a nickname. You may actually want to log what response the IRC server is sending you.
Reply
#3

It isn't even connecting. IRC server sends no info about these bots. And on samp-server its just disconnecting and reconnecting, but it didnt even connect.
Reply
#4

Those communications from irc server are saved in a file usually called irc_log.txt in script files folder.
Reply
#5

Quote:
Originally Posted by iLearner
Посмотреть сообщение
Those communications from irc server are saved in a file usually called irc_log.txt in script files folder.
There isn't any log of irc in scriptfiles.
Reply
#6

bump
Reply
#7

EDIT: Nvm fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)