with. pwn all right, but unknown gamemode -
MattEvans - 24.12.2013
Good evening, so the problem with the server. Everything good starts, but the spontaneous Gamemodes Unknown, although there is no ERROR Pawn speech .
logs :
Код HTML:
Loaded log file: " server_log.txt .
----------
SA -MP Dedicated Server
----------------------
v0.3x ( C) 2005-2013 SA -MP Team
[ 21:48:59 ]
[ 21:48:59 ] Server Plugins
[ 21:48:59 ] --------------
[ 21:48:59 ] Loading plugin : nativechecker.dll
[ 21:48:59 ] Loaded .
[ 21:48:59 ] Loading plugin : streamer.dll
[ 21:48:59 ]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[ 21:48:59 ] Loaded .
[ 21:48:59 ] Loading plugin : sscanf.dll
[ 21:48:59 ]
[ 21:48:59 ] ===============================
[ 21:48:59 ] sscanf plugin loaded .
[ 21:48:59 ] ( c) 2009 Alex ****** Cole
[ 21:48:59 ] ===============================
[ 21:48:59 ] Loaded .
[ 21:48:59 ] Loading plugin : audio.dll
[ 21:48:59 ]
*** Audio Plugin v0.5 R2 by Incognito loaded ***
[ 21:48:59 ] Loaded .
[ 21:48:59 ] Loaded 4 plugins .
[ 21:48:59 ]
[ 21:48:59 ] Ban list
[ 21:48:59 ] --------
[ 21:48:59 ] Loaded : samp.ban
[ 21:48:59 ]
[ 21:48:59 ]
[ 21:48:59 ] Filterscripts
[ 21:48:59 ] ---------------
[ 21:48:59 ] Loaded 0 filterscripts .
[ 21:48:59 ]
[ 21:48:59 ]
eVILLAGE.LT modification successfully launched!
[ 21:48:59 ]
Do not change the credits!
[ 21:48:59 ]
[ 21:48:59 ] Number of vehicle models : 0
[ 21:48:59 ]
eVILLAGE.LT modification successfully launched!
[ 21:48:59 ]
Do not change the credits!
[ 21:48:59 ]
[ 21:48:59 ] Number of vehicle models : 0
HostName: SA:MP Server
Address: 78.60.223.235:7777
Players: 0 / 100
Ping: 20
Mode: Unknown
Map: San Andreas
I do not know what the problem is, please help ..
Re: with. pwn all right, but unknown gamemode -
Tuntun - 24.12.2013
Go to server cfg and put : .dll with your plugin like: sscanf.dll
But if you're using linux use .so like : sscanf.so
and complie again.
Also check the server.cfg and be sure your gamemode name is fine. and all plugins are updated.
Re: with. pwn all right, but unknown gamemode -
MattEvans - 24.12.2013
My server cfg -
echo VISI KITI SERVERIO NUSTATYMAI PACIAM GAMEMODE !
lanmode 1
rcon_password afafafafafafafafasfa
maxplayers 100
port 7777
gamemode0 modas
plugins nativechecker.dll streamer.dll sscanf.dll audio.dll
announce 1
query 1
weburl no_url
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 5
password mantas
I didint know what is tis problem..
Re: with. pwn all right, but unknown gamemode -
Konstantinos - 24.12.2013
Load
crashdetect plugin.
Update sscanf plugin to its latest version (both plugin file and include) and re-compile.
Change the plugins line in server.cfg to:
pawn Код:
plugins streamer sscanf audio nativechecker crashdetect
and run the server. Post what it printed.
Re: with. pwn all right, but unknown gamemode -
TheOriginal1337 - 24.12.2013
If I am not mistaken you should put nativechecker as last in line of the plugins.
Re: with. pwn all right, but unknown gamemode -
MattEvans - 24.12.2013
what is the debug ?
http://www.part.lt/img/a010939eeb332...fd640ad386.bmp
Re: with. pwn all right, but unknown gamemode -
MattEvans - 24.12.2013
[22:28:44] [debug] Run time error 4: "Array index out of bounds"
[22:28:44] [debug] Accessing element at index 65535 past array upper bound 1999
[22:28:44] [debug] AMX backtrace:
[22:28:44] [debug] #0 00109888 in ?? () from modas.amx
[22:28:44] [debug] #1 00013b2c in public OnGameModeInit () from modas.amx
[22:28:44]
Re: with. pwn all right, but unknown gamemode -
Konstantinos - 25.12.2013
Quote:
Originally Posted by TheOriginal1337
If I am not mistaken you should put nativechecker as last in line of the plugins.
|
We do not use the functions for crashdetect, so there's not any problem with that.
Quote:
Originally Posted by MattEvans
[22:28:44] [debug] Run time error 4: "Array index out of bounds"
[22:28:44] [debug] Accessing element at index 65535 past array upper bound 1999
[22:28:44] [debug] AMX backtrace:
[22:28:44] [debug] #0 00109888 in ?? () from modas.amx
[22:28:44] [debug] #1 00013b2c in public OnGameModeInit () from modas.amx
[22:28:44]
|
The only known thing is that something (probably a function that gets called in OnGameModeInit) caused a runtime error.
It has to do with MAX_VEHICLES (2000 - last valid index 1999) and INVALID_VEHICLE_ID (65535). When you create/add a vehicle, according to SA-MP Wiki, it returns INVALID_VEHICLE_ID (65535) if vehicle was not created (vehicle limit reached or invalid vehicle model ID passed). After that, it was used inside an array [] and caused the index out of bounds runtime error.
Compile with debug info:
https://github.com/Zeex/samp-plugin-...ith-debug-info
and let's hope it will print the line was caused. Otherwise, you'll need to post OnGameModeInit.
Re: with. pwn all right, but unknown gamemode -
FahadKing07 - 25.12.2013
It usually happens with me, but i usually copy my pawno text and i will paste into new window and i will compile it. After that everything will work fine.