Hello again guys, here i'm with another strange behavior.
I'm runnig DeathrunManager by xPaw (Default plugin, no changes) and today i just updated my server from AMXX 183 5151 to AMXX 190 5215 and now i can't use CSTRIKE at all.
Code:
L 09/10/2018 - 09:48:47: [CSTRIKE] Invalid weapon id 16
L 09/10/2018 - 09:48:47: [AMXX] Displaying debug trace (plugin "DeathrunManager.amxx", version "3.0.3")
L 09/10/2018 - 09:48:47: [AMXX] Run time error 10: native error (native "cs_set_user_bpammo")
L 09/10/2018 - 09:48:47: [AMXX] [0] DeathrunManager.sma::GiveUsp (line 1309)
It is a clean install of AMXX 190 5215 with MetaMod 1.21p37, there are no other plugins running, just DeathrunManager.amxx (Except AMXX's default ones).
I removed all unnecessary code from DR to test this and with the following you can reproduce the problem.
PHP Code:
public plugin_init( ) {
new const VERSION[ ] = "3.0.3";
register_plugin( "Deathrun Manager", VERSION, "xPaw" );
RegisterHam( Ham_Spawn, "player", "FwdHamPlayerSpawn", 1 );
}
public FwdHamPlayerSpawn( id )
{
if( !is_user_alive( id ) )
return HAM_IGNORED;
new CsTeams:iTeam = cs_get_user_team( id );
strip_user_weapons( id );
give_item( id, "weapon_knife" );
set_pdata_int( id, 116, 0 ); // Pickup fix by ConnorMcLeod
if( iTeam == CS_TEAM_CT )
set_task( 1.0, "GiveUsp", id );
return HAM_IGNORED;
}
public GiveUsp( const id ) {
if( is_user_alive( id ) ) {
give_item( id, "weapon_usp" );
cs_set_user_bpammo( id, CSW_USP, 100 );
}
}
Code:
meta list
Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] AMX Mod X RUN - amxmodx_mm.dll v1.9.0-d ini Start ANY
[ 2] Ham Sandwich RUN - hamsandwich_amxx v1.9.0-d pl1 ANY ANY
[ 3] CSX RUN - csx_amxx.dll v1.9.0-d pl1 ANY ANY
[ 4] Engine RUN - engine_amxx.dll v1.9.0-d pl1 ANY ANY
[ 5] FakeMeta RUN - fakemeta_amxx.dl v1.9.0-d pl1 ANY ANY
[ 6] CStrike RUN - cstrike_amxx.dll v1.9.0-d pl1 ANY ANY
[ 7] Fun RUN - fun_amxx.dll v1.9.0-d pl1 ANY ANY
7 plugins, 7 running
Code:
name version author file status
[ 1] Admin Base 1.9.0-dev+ AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.9.0-dev+ AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.9.0-dev+ AMXX Dev Team adminhelp.amxx running
[ 4] Slots Reservation 1.9.0-dev+ AMXX Dev Team adminslots.amxx running
[ 5] Multi-Lingual System 1.9.0-dev+ AMXX Dev Team multilingual.am running
[ 6] Menus Front-End 1.9.0-dev+ AMXX Dev Team menufront.amxx running
[ 7] Commands Menu 1.9.0-dev+ AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.9.0-dev+ AMXX Dev Team plmenu.amxx running
[ 9] Maps Menu 1.9.0-dev+ AMXX Dev Team mapsmenu.amxx running
[ 10] Plugin Menu 1.9.0-dev+ AMXX Dev Team pluginmenu.amxx running
[ 11] Admin Chat 1.9.0-dev+ AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.9.0-dev+ AMXX Dev Team antiflood.amxx running
[ 13] Scrolling Message 1.9.0-dev+ AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages 1.9.0-dev+ AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.9.0-dev+ AMXX Dev Team adminvote.amxx running
[ 16] NextMap 1.9.0-dev+ AMXX Dev Team nextmap.amxx running
[ 17] Nextmap Chooser 1.9.0-dev+ AMXX Dev Team mapchooser.amxx running
[ 18] TimeLeft 1.9.0-dev+ AMXX Dev Team timeleft.amxx running
[ 19] Pause Plugins 1.9.0-dev+ AMXX Dev Team pausecfg.amxx running
[ 20] Stats Configuration 1.9.0-dev+ AMXX Dev Team statscfg.amxx running
[ 21] StatsX 1.9.0-dev+ AMXX Dev Team statsx.amxx running
[ 22] Deathrun Manager 3.0.3 xPaw Deathrun.amxx debug
22 plugins, 22 running
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:14 EET (optimized)
Code:
AMX Mod X 1.9.0-dev+5215 (http://www.amxmodx.org)
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: Sep 9 2018 04:45:17
Built from: https://github.com/alliedmodders/amxmodx/commit/8a720a7d
Build ID: 5215:8a720a7d
Core mode: JIT+ASM32
I already had this problem before with AMXX 183 5154, i did post here (
https://forums.alliedmods.net/showthread.php?t=308363) but the only thing that worked for me was going back to AMXX 183 5151. Now i'm trying the latest version but it is happening again and this time i can't go back at all since my new plugin will use the message "ShowMenu" which was fixed recently (as you can see is this thread
https://forums.alliedmods.net/showthread.php?t=310522).
Even my operational system is different, this time i have windows 7 instead of windows 8.1 if it does matter.
__________________