[Include] IRC Bot
#10

Quote:
Originally Posted by MP2
Посмотреть сообщение
Why don't you post in THAT topic then? ¬_¬
Man, my problem is related with both topics, so there's no big deal. Furthermore, I was trying to revive this topic, because it's a good piece of code to learn about sockets and IRC and, unfortunately, few people use it.

Anyway, I will ask there later if that doesn't happen...

Update: Solved with /whois command in an hardcore way lol

Update 2: I'm trying to connect to IRC with this filterscript but when I start the server I get a segmentation fault:

Код:
[05:45:37] Filterscripts
[05:45:37] ---------------
[05:45:37]   Loading filterscript 'irc_script.amx'...
[05:45:37] Starting irc_script...

[05:45:37] [debug] Server crashed while executing irc_script.amx
[05:45:37] [debug] AMX backtrace:
[05:45:37] [debug] #0 native socket_connect () [b776f440] from socket.so
[05:45:37] [debug] #1 000004cc in ircbot_connect (server[]=@0x000017c8 "foco.us.irc.tl", port=6667, nickname[]=@0x00001804 "iTestBot", username[]=@0x00001828 "iTestBot", realname[]=@0x0000184c "iTest van Bot") at E:\Programas\l\MWR 294 0.3er4\pawno\include\irc_bot.inc:49
[05:45:37] [debug] #2 00003658 in public OnFilterScriptInit () at E:\Programas\l\MWR 294 0.3er4\filterscripts\irc_script.pwn:14
[05:45:37] [debug] System backtrace:
[05:45:37] [debug] #0 b746535b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[05:45:37] [debug] #1 b745e389 in _ZN11crashdetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so
[05:45:37] [debug] #2 b74608ed in _ZN11crashdetect11OnExceptionEPv () from plugins/crashdetect.so
[05:45:37] [debug] #3 b7464e68 in ?? () from plugins/crashdetect.so
[05:45:37] [debug] #4 b777a600 in ?? ()
[05:45:37] [debug] #5 b7770083 in _ZN7CSocket14connect_socketEiPci () from plugins/socket.so
[05:45:37] [debug] #6 b776f4a0 in _Z16n_connect_socketP6tagAMXPi () from plugins/socket.so
[05:45:37] [debug] #7 08093c94 in ?? () from ./samp_test
[05:45:37] [debug] #8 b7460ea7 in _ZN11crashdetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[05:45:37] [debug] #9 b746341e in ?? () from plugins/crashdetect.so
[05:45:37] [debug] #10 b746706e in amx_Exec () from plugins/crashdetect.so
[05:45:37] [debug] #11 b7460dab in _ZN11crashdetect9DoAmxExecEPii () from plugins/crashdetect.so
[05:45:37] [debug] #12 b7463457 in ?? () from plugins/crashdetect.so
[05:45:37] [debug] #13 080a9726 in ?? () from ./samp_test
[05:45:37] [debug] #14 080b2821 in ?? () from ./samp_test
[05:45:37] [debug] #15 080b2b2a in ?? () from ./samp_test
[05:45:37] [debug] #16 080b1407 in ?? () from ./samp_test
[05:45:37] [debug] #17 b7497ce6 in __libc_start_main () from /lib/libc.so.6
[05:45:37] [debug] #18 0804b521 in ?? () from ./samp_test
Any suggestion for the problem?

Notes: I'm running the script in a VPS. I tested it in a normal sa-mp host company and it worked fine. Any guesses? :/

Update 3: Solved. /etc/resolv.conf nameservers were missing.
Reply


Messages In This Thread
IRC Bot - by BlueG - 16.04.2012, 21:02
Re: IRC Bot - by Richie© - 16.04.2012, 21:22
Re: IRC Bot - by AndreT - 16.04.2012, 21:37
Re: IRC Bot - by Juninho_Oakley - 17.04.2012, 01:05
Re: IRC Bot - by Niko_boy - 17.04.2012, 10:48
Re: IRC Bot - by Luka P. - 07.08.2012, 02:36
Re: IRC Bot - by 2KY - 07.08.2012, 02:42
Re: IRC Bot - by richardcor91 - 20.06.2013, 04:54
Re: IRC Bot - by MP2 - 20.06.2013, 05:36
Re: IRC Bot - by richardcor91 - 20.06.2013, 16:39
Re: IRC Bot - by Kar - 28.02.2015, 00:54

Forum Jump:


Users browsing this thread: 2 Guest(s)