SA-MP Forums Archive
Errorr With IRC Chat - 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: Errorr With IRC Chat (/showthread.php?tid=512926)



Errorr With IRC Chat - gekas - 13.05.2014

I have some problems

PHP код:
C:\Users\Arlind\Desktop\fsdf\filterscripts\Project.pwn(2020) : error 017undefined symbol "IRC_SetIntData"
C:\Users\Arlind\Desktop\fsdf\filterscripts\Project.pwn(2024) : error 017undefined symbol "IRC_SetIntData"
C:\Users\Arlind\Desktop\fsdf\filterscripts\Project.pwn(11081) : error 025: function heading differs from prototype
C
:\Users\Arlind\Desktop\fsdf\filterscripts\Project.pwn(11097) : error 025: function heading differs from prototype
C
:\Users\Arlind\Desktop\fsdf\filterscripts\Project.pwn(11110) : warning 235: public function lacks forward declaration (symbol "IRC_OnConnectAttempt")
C:\Users\Arlind\Desktop\fsdf\filterscripts\Project.pwn(11121) : warning 235: public function lacks forward declaration (symbol "IRC_OnConnectAttemptFail")
C:\Users\Arlind\Desktop\fsdf\filterscripts\Project.pwn(11151) : warning 235: public function lacks forward declaration (symbol "IRC_OnInvitedToChannel")
C:\Users\Arlind\Desktop\fsdf\filterscripts\Project.pwn(11165) : warning 235: public function lacks forward declaration (symbol "IRC_OnKickedFromChannel")
C:\Users\Arlind\Desktop\fsdf\filterscripts\Project.pwn(11190) : warning 235: public function lacks forward declaration (symbol "IRC_OnUserKickedFromChannel")
C:\Users\Arlind\Desktop\fsdf\filterscripts\Project.pwn(11235) : warning 235: public function lacks forward declaration (symbol "IRC_OnUserRequestCTCP")
C:\Users\Arlind\Desktop\fsdf\filterscripts\Project.pwn(11241) : error 017undefined symbol "IRC_ReplyCTCP"
C:\Users\Arlind\Desktop\fsdf\filterscripts\Project.pwn(11246) : warning 235: public function lacks forward declaration (symbol "IRC_OnUserReplyCTCP")
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
5 Errors

PHP код:
    public IRC_OnConnect(botidip[], port)
    {
            
printf("*** IRC_OnConnect: Bot ID %d connected to %s:%d"botidipport);
            
// Join the channel
            
IRC_JoinChannel(botidIRC_CHANNEL);
            
// Add the bot to the group
            
IRC_AddToGroup(groupIDbotid);
            return 
1;
    }
    
/*
            This callback is executed whenever a current connection is closed. The
            plugin may automatically attempt to reconnect per user settings. IRC_Quit
            may be called at any time to stop the reconnection process.
    */
    
public IRC_OnDisconnect(botidip[], portreason[])
    {
            
printf("*** IRC_OnDisconnect: Bot ID %d disconnected from %s:%d (%s)"botidipportreason);
            
// Remove the bot from the group
            
IRC_RemoveFromGroup(groupIDbotid);
            return 
1;
    }
    
/*
            This callback is executed whenever a connection attempt begins. IRC_Quit may
            be called at any time to stop the reconnection process.
    */
    
public IRC_OnConnectAttempt(botidip[], port)
    {
            
printf("*** IRC_OnConnectAttempt: Bot ID %d attempting to connect to %s:%d..."botidipport);
            return 
1;
    }
    
/*
            This callback is executed whenever a connection attempt fails. IRC_Quit may
            be called at any time to stop the reconnection process.
    */
    
public IRC_OnConnectAttemptFail(botidip[], portreason[])
    {
            
printf("*** IRC_OnConnectAttemptFail: Bot ID %d failed to connect to %s:%d (%s)"botidipportreason);
            return 
1;
    }
    
/*
            This callback is executed whenever a bot joins a channel.
    */
    
public IRC_OnJoinChannel(botidchannel[])
    {
            
printf("*** IRC_OnJoinChannel: Bot ID %d joined channel %s"botidchannel);
            return 
1;
    }
    
/*
            This callback is executed whenevever a bot leaves a channel.
    */
    
public IRC_OnLeaveChannel(botidchannel[], message[])
    {
            
printf("*** IRC_OnLeaveChannel: Bot ID %d left channel %s (%s)"botidchannelmessage);
            return 
1;
    }
    
/*
            This callback is executed whenevever a bot is invited to a channel.
    */
    
public IRC_OnInvitedToChannel(botidchannel[], invitinguser[], invitinghost[])
    {
            
printf("*** IRC_OnInvitedToChannel: Bot ID %d invited to channel %s by %s (%s)"botidchannelinvitinguserinvitinghost);
            
IRC_JoinChannel(botidchannel);
            return 
1;
    }
    
/*
            This callback is executed whenevever a bot is kicked from a channel. If the
            bot cannot immediately rejoin the channel (in the event, for example, that
            the bot is kicked and then banned), you might want to set up a timer here
            for rejoin attempts.
    */
    
public IRC_OnKickedFromChannel(botidchannel[], oppeduser[], oppedhost[], message[])
    {
            
printf("*** IRC_OnKickedFromChannel: Bot ID %d kicked by %s (%s) from channel %s (%s)"botidoppeduseroppedhostchannelmessage);
            
IRC_JoinChannel(botidchannel);
            return 
1;
    }
    public 
IRC_OnUserDisconnect(botiduser[], host[], message[])
    {
            
printf("*** IRC_OnUserDisconnect (Bot ID %d): User %s (%s) disconnected (%s)"botiduserhostmessage);
            return 
1;
    }
    public 
IRC_OnUserJoinChannel(botidchannel[], user[], host[])
    {
            
printf("*** IRC_OnUserJoinChannel (Bot ID %d): User %s (%s) joined channel %s"botiduserhostchannel);
            return 
1;
    }
    public 
IRC_OnUserLeaveChannel(botidchannel[], user[], host[], message[])
    {
            
printf("*** IRC_OnUserLeaveChannel (Bot ID %d): User %s (%s) left channel %s (%s)"botiduserhostchannelmessage);
            return 
1;
    }
    public 
IRC_OnUserKickedFromChannel(botidchannel[], kickeduser[], oppeduser[], oppedhost[], message[])
    {
            
printf("*** IRC_OnUserKickedFromChannel (Bot ID %d): User %s kicked by %s (%s) from channel %s (%s)"botidkickeduseroppeduseroppedhostchannelmessage);
    }
    public 
IRC_OnUserNickChange(botidoldnick[], newnick[], host[])
    {
            
printf("*** IRC_OnUserNickChange (Bot ID %d): User %s (%s) changed his/her nick to %s"botidoldnickhostnewnick);
            return 
1;
    }
    public 
IRC_OnUserSetChannelMode(botidchannel[], user[], host[], mode[])
    {
            
printf("*** IRC_OnUserSetChannelMode (Bot ID %d): User %s (%s) on %s set mode: %s"botiduserhostchannelmode);
            return 
1;
    }
    public 
IRC_OnUserSetChannelTopic(botidchannel[], user[], host[], topic[])
    {
            
printf("*** IRC_OnUserSetChannelTopic (Bot ID %d): User %s (%s) on %s set topic: %s"botiduserhostchanneltopic);
            return 
1;
    }
    public 
IRC_OnUserSay(botidrecipient[], user[], host[], message[])
    {
            
printf("*** IRC_OnUserSay (Bot ID %d): User %s (%s) sent message to %s: %s"botiduserhostrecipientmessage);
            
// Someone sent the first bot a private message
            
if (!strcmp(recipientBOT_1_NICKNAME))
            {
                    
IRC_Say(botiduser"You sent me a PM!");
            }
            return 
1;
    }
    public 
IRC_OnUserNotice(botidrecipient[], user[], host[], message[])
    {
            
printf("*** IRC_OnUserNotice (Bot ID %d): User %s (%s) sent notice to %s: %s"botiduserhostrecipientmessage);
            
// Someone sent the second bot a notice (probably a network service)
            
if (!strcmp(recipientBOT_2_NICKNAME))
            {
                    
IRC_Notice(botiduser"You sent me a notice!");
            }
            return 
1;
    }
    public 
IRC_OnUserRequestCTCP(botiduser[], host[], message[])
    {
            
printf("*** IRC_OnUserRequestCTCP (Bot ID %d): User %s (%s) sent CTCP request: %s"botiduserhostmessage);
            
// Someone sent a CTCP VERSION request
            
if (!strcmp(message"VERSION"))
            {
                    
IRC_ReplyCTCP(botiduser"VERSION SA-MP IRC Plugin v" #PLUGIN_VERSION "");
            
}
            return 
1;
    }
    public 
IRC_OnUserReplyCTCP(botiduser[], host[], message[])
    {
            
printf("*** IRC_OnUserReplyCTCP (Bot ID %d): User %s (%s) sent CTCP reply: %s"botiduserhostmessage);
            return 
1;
    }
    
/*
            This callback is useful for logging, debugging, or catching error messages
            sent by the IRC server.
    */
    
public IRC_OnReceiveRaw(botidmessage[])
    {
            new 
File:file;
            if (!
fexist("irc_log.txt"))
            {
                    
file fopen("irc_log.txt"io_write);
            }
            else
            {
                    
file fopen("irc_log.txt"io_append);
            }
            if (
file)
            {
                    
fwrite(filemessage);
                    
fwrite(file"\r\n");
                    
fclose(file);
            }
            return 
1;
    } 



Re: Errorr With IRC Chat - Denying - 13.05.2014

You need to forward the publics, I suppose.


Re: Errorr With IRC Chat - gekas - 13.05.2014

Can to forward for mee ?


Re: Errorr With IRC Chat - AroseKhanNiazi - 14.05.2014

u got irc plugin/include