View Single Post
kgns
Senior Member
Join Date: May 2017
Location: Istanbul, Turkey
Old 06-24-2017 , 08:51   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float management)
Reply With Quote #22

Quote:
Originally Posted by szogun View Post
Code:
L 06/24/2017 - 12:28:44: [SM] Exception reported: Menu handle 0 is invalid (error 4)
L 06/24/2017 - 12:28:44: [SM] Blaming: weapons.smx
L 06/24/2017 - 12:28:44: [SM] Call stack trace:
L 06/24/2017 - 12:28:44: [SM]   [0] Menu.AddItem
L 06/24/2017 - 12:28:44: [SM]   [1] Line 66, weapons/config.sp::ReadConfig
L 06/24/2017 - 12:28:44: [SM]   [2] Line 85, weapons.sp::OnConfigsExecuted
Code:
L 06/24/2017 - 12:25:09: [SM] Exception reported: Menu handle 0 is invalid (error 4)
L 06/24/2017 - 12:25:09: [SM] Blaming: weapons.smx
L 06/24/2017 - 12:25:09: [SM] Call stack trace:
L 06/24/2017 - 12:25:09: [SM]   [0] Menu.Display
L 06/24/2017 - 12:25:09: [SM]   [1] Line 87, weapons/menus.sp::WeaponMenuHandler
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
kgns is offline