Raised This Month: $12 Target: $400
 3% 

Solved [CSTRIKE] Invalid weapon id 16


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 09-10-2018 , 09:18   [CSTRIKE] Invalid weapon id 16
Reply With Quote #1

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" );
    
    
RegisterHamHam_Spawn"player""FwdHamPlayerSpawn");
}

public 
FwdHamPlayerSpawnid 
{
    if( !
is_user_aliveid ) )
        return 
HAM_IGNORED;
    
    new 
CsTeams:iTeam cs_get_user_teamid );
                
    
strip_user_weaponsid );
    
give_itemid"weapon_knife" );
        
    
set_pdata_intid116); // Pickup fix by ConnorMcLeod
                
    
if( iTeam == CS_TEAM_CT )
        
set_task1.0"GiveUsp"id );
    
    return 
HAM_IGNORED;
}

public 
GiveUsp( const id ) {
    if( 
is_user_aliveid ) ) {
        
give_itemid"weapon_usp" );
        
cs_set_user_bpammoidCSW_USP100 );
    }

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.
__________________

Last edited by marcelowzd; 09-12-2018 at 13:28.
marcelowzd is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-10-2018 , 09:30   Re: [CSTRIKE] Invalid weapon id 16
Reply With Quote #2

HLDS or Rehlds/Regamedll? Also post the server version.
__________________

Last edited by HamletEagle; 09-10-2018 at 09:32.
HamletEagle is offline
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 09-10-2018 , 09:36   Re: [CSTRIKE] Invalid weapon id 16
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
HLDS or Rehlds/Regamedll? Also post the server version.
It is just a "NewGame" server, i don't use RegameDLL neither REHLDS on my servers. If you want i can test on linux right now.
__________________
marcelowzd is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-10-2018 , 09:44   Re: [CSTRIKE] Invalid weapon id 16
Reply With Quote #4

Sure, it will help.
__________________
HamletEagle is offline
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 09-10-2018 , 15:58   Re: [CSTRIKE] Invalid weapon id 16
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
HLDS or Rehlds/Regamedll? Also post the server version.
Code:
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 17:35:12 Jul  5 2017 (7559)
This is what the output of "rcon version". Also, i tested there and the same happened. I know it is linux but i don't know which version the server is using, if needed i can ask the host.

Just an additional info, the last time i had this problem it was another host (i still have that server and it is still running with amxx 183 5151)

EDIT: I removed the 'gamedata' folder and put It back and the error disappeared (on local server, i still need to test in the Linux server)

EDIT 2: Also worked for the Linux version, even though i have no idea why.
__________________

Last edited by marcelowzd; 09-12-2018 at 13:27.
marcelowzd is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode