Backtrace error
#1

Код:
[OnGameModeInit] Initialising 'ac'...
[20:19:48] socket_listen(): Socket has failed to bind on port 7777.
[20:19:48] [debug] Server crashed while executing ScavengeSurvive.amx
[20:19:48] [debug] AMX backtrace:
[20:19:48] [debug] #0 native fread () from samp-server.exe
[20:19:48] [debug] #1 00157568 in ?? () from ScavengeSurvive.amx
[20:19:48] [debug] #2 0000ce20 in public Itter_OnGameModeInit () from ScavengeSurvive.amx
[20:19:48] [debug] #3 native CallLocalFunction () from samp-server.exe
[20:19:48] [debug] #4 00009a80 in public ScriptInit_OnGameModeInit () from ScavengeSurvive.amx
[20:19:48] [debug] #5 00006634 in public SSCANF_OnGameModeInit () from ScavengeSurvive.amx
[20:19:48] [debug] #6 00000960 in public main_OnGameModeInit () from ScavengeSurvive.amx
[20:19:48] [debug] #7 0000084c in public OnGameModeInit () from ScavengeSurvive.amx
[20:19:49] [debug] Native backtrace:
[20:19:49] [debug] #0 77e12312 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[20:19:49] [debug] #1 00498bb8 in ?? () from samp-server.exe
[20:19:49] [debug] #2 004991e0 in ?? () from samp-server.exe
[20:19:49] [debug] #3 00404f14 in ?? () from samp-server.exe
Why socket creation failed?And the backtrace look at that help indeed.
Reply
#2

Backtrace shows that it crashes because of fread (= invalid file handle). Has nothing to do with the sockets. A listener can fail to bind to a port if the port is occupied by something else. If it's a UDP socket then you can't use 7777 because the SA-MP server itself uses that protocol. A TCP listener should work in theory but you may just want to try another port as well, perhaps in the range 49152 - 65535
Reply
#3

@Vince tried the best but
Quote:

[OnGameModeInit] Initialising 'ac'...
[13:31:53] socket_listen(): Socket has failed to bind on port 49155.
[13:31:53] [debug] Server crashed while executing ScavengeSurvive.amx
[13:31:53] [debug] AMX backtrace:
[13:31:53] [debug] #0 native fread () from samp-server.exe
[13:31:53] [debug] #1 00157808 in ?? () from ScavengeSurvive.amx
[13:31:53] [debug] #2 0000d0c0 in public Itter_OnGameModeInit () from ScavengeSurvive.amx
[13:31:53] [debug] #3 native CallLocalFunction () from samp-server.exe
[13:31:53] [debug] #4 00009d20 in public ScriptInit_OnGameModeInit () from ScavengeSurvive.amx
[13:31:53] [debug] #5 000068d4 in public SSCANF_OnGameModeInit () from ScavengeSurvive.amx
[13:31:53] [debug] #6 00000c30 in public main_OnGameModeInit () from ScavengeSurvive.amx
[13:31:53] [debug] #7 0000084c in public OnGameModeInit () from ScavengeSurvive.amx
[13:31:54] [debug] Native backtrace:
[13:31:54] [debug] #0 77a22262 in ?? () from F:\Windows\SysWOW64\ntdll.dll
[13:31:54] [debug] #1 00498bb8 in ?? () from samp-server.exe
[13:31:54] [debug] #2 004991e0 in ?? () from samp-server.exe
[13:31:54] [debug] #3 00404f14 in ?? () from samp-server.exe

Reply
#4

windows firewall rejects the samp server to open the listener port? if not, simple try some random ports, if problem still occurs then just throw your server in the recycle bin xd
Reply
#5

Again an again even on the host.
Quote:

[OnGameModeInit] Initialising 'Ban'...
[09:20:53]
[OnGameModeInit] Initialising 'Admin/Level1'...
[09:20:53]
[OnGameModeInit] Initialising 'Admin/Level2'...
[09:20:53]
[OnGameModeInit] Initialising 'Admin/Level3'...
[09:20:53]
[OnGameModeInit] Initialising 'Admin/Level4'...
[09:20:53]
[OnGameModeInit] Initialising 'BugReport'...
[09:20:53]
[OnGameModeInit] Initialising 'ac'...
[09:20:53] socket_listen(): Socket has failed to bind on port 49156.
[09:20:53] [debug] Server crashed while executing ScavengeSurvive.amx
[09:20:53] [debug] AMX backtrace:
[09:20:53] [debug] #0 native fread () from samp-server.exe
[09:20:53] [debug] #1 00157568 in ?? () from ScavengeSurvive.amx
[09:20:53] [debug] #2 0000ce20 in public Itter_OnGameModeInit () from ScavengeSurvive.amx
[09:20:53] [debug] #3 native CallLocalFunction () from samp-server.exe
[09:20:53] [debug] #4 00009a80 in public ScriptInit_OnGameModeInit () from ScavengeSurvive.amx
[09:20:53] [debug] #5 00006634 in public SSCANF_OnGameModeInit () from ScavengeSurvive.amx
[09:20:53] [debug] #6 00000960 in public main_OnGameModeInit () from ScavengeSurvive.amx
[09:20:53] [debug] #7 0000084c in public OnGameModeInit () from ScavengeSurvive.amx
[09:20:53] [debug] Native backtrace:
[09:20:53] [debug] #0 77e12312 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[09:20:53] [debug] #1 00498bb8 in ?? () from samp-server.exe
[09:20:53] [debug] #2 004991e0 in ?? () from samp-server.exe
[09:20:53] [debug] #3 00404f14 in ?? () from samp-server.exe

Reply
#6

BUMP @Vince??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)