So, i've been using the same Deathrun Manager for about some time already and i've never had any problems or errors with it.
But, recently i upgraded my server from AMX 1.8.3 +dev-5151 to 1.8.3 +dev-5154 and i started receiving an strange error and random crashes with no pattern (the second applies to every single map)
I'm using DeathrunManager by xPaw.
PHP Code:
public GiveUsp( const id ) {
if( is_user_alive( id ) )
{
give_item( id, "weapon_usp" );
cs_set_user_bpammo( id, CSW_USP, 100 ); // This is the line that creates problems
}
}
PHP Code:
L 06/17/2018 - 10:24:52: [AMXX] Run time error 10 (plugin "DeathrunManager.amxx") (native "cs_set_user_bpammo") - debug not enabled!
L 06/17/2018 - 10:24:52: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 06/17/2018 - 10:25:04: [CSTRIKE] Invalid weapon id 16
This is strange, in cstrike_const.inc ID 16 is CSW_USP, but it says it is invalid?
Metamod
Code:
Metamod v1.21p37 2013/05/30 (5:13)
by Will Day
http://www.metamod.org/
Patch: Metamod-P (mm-p) v37
by Jussi Kivilinna
http://metamod-p.sourceforge.net/
compiled: May 30 2013, 11:41:16 EET (optimized)
Code:
AMX Mod X 1.8.3-dev+5154
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko, Felix "SniperBeamer" Geyer
Jonny "Got His Gun" Bergstrom, Lukasz "SidLuke" Wlasinski
Christian "Basic-Master" Hammacher, Borja "faluco" Ferrer
Scott "DS" Ehlert
Compiled: Mar 9 2018, 10:33:52
URL:http://www.amxmodx.org/
Core mode: JIT
Meta list
Code:
Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.8.3-d ini Start ANY
[ 2] Engine RUN - engine_amxx_i386 v1.8.3-d pl1 ANY ANY
[ 3] FakeMeta RUN - fakemeta_amxx_i36 v1.8.3-d pl1 ANY ANY
[ 4] Fun RUN - fun_amxx_i386 v1.8.3-d pl1 ANY ANY
[ 5] CStrike RUN - cstrike_amxx_i38 v1.8.3-d pl1 ANY ANY
[ 6] Ham Sandwich RUN - hamsandwich_amxx v1.8.3-d pl1 ANY ANY
[ 7] GeoIP RUN - geoip_amxx_i386. v1.8.3-d pl1 ANY ANY
I didn't enable debug because this is just weird, i've never had a single error with it before. I must say that i did recompile every plugin (updated client_disconnect to client_disconnected and so on).
There is only one crash that has a pattern, and that is when the DR is about to pick the first terrorist (the round ends and it crashes right after, before even starting)
So, i'm here because i don't know if there is a bug with this version of AMXX or is there something else causing this, any ideas?
__________________