IRC Problems
#1

Код:
 Error: Function not registered: 'ircDisconnect'
[13:35:56]    Error: Function not registered: 'ircConnect'
[13:35:56]    Error: Function not registered: 'ircJoinChan'
[13:35:56]    Error: Function not registered: 'ircSendRawData'
[13:35:56]    Error: Function not registered: 'ircPollEvents'
[13:35:56]    Error: Function not registered: 'ircSay'
[13:35:56]    Error: Function not registered: 'ircGetUserLevel'
[13:35:56]   Filterscript 'NEW-IRC.amx' loaded.
Pliss Help Me

Tnx
Reply
#2

someone?
Reply
#3

You need to show the code for each and everyone of those functions or we won't be able to help.
Reply
#4

Код:
//--CONFIG--[EDIT THIS]-----------------------------

// ====================== [ DEFINES ] =====================//
#define EchoBot "|GT|TruckBot"
#define EchoServer "gtirc.tk"
#define EchoChan "#testmonitoring2"
#define EchoPort 6667
#define CmdChar '!'

//--CONFIG--END--[NO NEED TO EDIT PAST THIS POINT]--

#include <a_samp>

#pragma unused sztmp

#define yellow 0xFFFF00AA
#define green 0x33AA33AA
#define red 0xFF0000AA
#define kred 0xAA3333AA
#define white 0xFFFFFFFF
#define orange 0xFF8040FF
#if defined _irc_included
	#endinput
#endif
#define _irc_included

new sztmp[256];

native ircConnect(server[], port, user[]);
native ircDisconnect(conn);
native ircSay(conn, channel[], message[]);
native ircJoinChan(conn, channel[]);
native ircPartChan(conn, channel[]);
native ircSetMode(conn, channel[], modes[], nicks[]);
native ircGetUserLevel(conn, channel[], user[], dest[]);
native ircGetUserList(conn, channel[], dest[], size);
native ircSendRawData(conn, rawdata[]);
native ircPollEvents();
forward ircOnConnect(conn);
forward ircOnUserSay(conn, channel[], user[], message[]);
forward ircOnUserPart(conn, channel[], user[]);
forward ircOnUserJoin(conn, channel[], user[]);

// irccmd - a slightly modified version of dcmd (original work by dracoblue)
#define irccmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (irccmd_%1(conn,channel,user,"")))||(((%3)[(%2) + 1] == 32) && (irccmd_%1(conn,channel,user,(%3)[(%2) + 2]))))) return 1
#define printinfo format(sztmp,sizeof(sztmp),"%i [%s] %s:%s", conn, channel, user, params); printf(sztmp);


forward ircOnConnect(conn);
forward ircOnUserSay(conn, channel[], user[], message[]);
forward ircOnUserPart(conn, channel[], user[]);
forward ircOnUserJoin(conn, channel[], user[]);

forward EventTimer(); //do not remove

forward ircConn();
forward ircJoin(conn);

new EchoConnection;
Reply
#5

use latest version irc include and plugin
Reply
#6

tnx! can you pliss send me the link to i download it?
Reply
#7

always do search

https://sampforum.blast.hk/showthread.php?tid=98803
Reply
#8

Код:
[20:20:24] 
[20:20:24] Server Plugins
[20:20:24] --------------
[20:20:24]  Loading plugin: irc.so
[20:20:24]   Failed (plugins/irc.so: cannot open shared object file: No such file or directory)
[20:20:24]  Loaded 0 plugins.
Reply
#9

its means that you dont have "irc.so" plugin ! in your Plugins directory put in it
Reply
#10

tnx! it is loaded now all works fine but bot is not connecting :P i will try to fix it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)