20.06.2013, 16:39
(
Последний раз редактировалось richardcor91; 21.06.2013 в 18:32.
)
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:
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.
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
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.