View Single Post
szogun
Senior Member
Join Date: Apr 2016
Old 06-24-2017 , 10:40   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float management)
Reply With Quote #24

Quote:
Originally Posted by kgns View Post
you have edited the source code;

Code:
L 06/24/2017 - 12:28:44: [SM]   [2] Line 85, weapons.sp::OnConfigsExecuted
should be line 84 not 85

and the error you get cannot happen with the untouched release, because there is a:
Code:
menuWeapons[langCounter][k] = new Menu(WeaponsMenuHandler, MENU_ACTIONS_DEFAULT|MenuAction_DisplayItem);
right before the lines you get the error from. so menu handle will never be invalid unless you are getting oom or something.

use the plugin without modifying the code and test it again
Only what I changed
PHP Code:
    RegConsoleCmd("buyammo1"CommandWeaponSkins);
    
RegConsoleCmd("sm_ws"CommandWeaponSkins);
    
RegConsoleCmd("sm_skin"CommandWeaponSkins);
    
RegConsoleCmd("sm_skins"CommandWeaponSkins);
    
RegConsoleCmd("buyammo2"CommandKnife);
    
RegConsoleCmd("sm_knife"CommandKnife);
    
RegConsoleCmd("sm_nametag"CommandNameTag);
    
RegConsoleCmd("sm_wslang"CommandWSLang);
    
//RegConsoleCmd("sm_reportdata", CommandReportData); 
szogun is online now