kgns / weapons

CS:GO Custom Weapon Options (Skins, NameTag, StatTrak, Wear/Float, Knives)
GNU General Public License v3.0
339 stars 121 forks source link

Fixed the latest cs go bug. #265

Closed SzollosiJanos closed 1 year ago

SzollosiJanos commented 1 year ago

Fixed the bug where the latest cs go update broke the plugin when you had a knife equiped in cs go.

crashzk commented 1 year ago

It wouldn't just update PTaH @SzollosiJanos. I did it here and it seems that I no longer have this error.

stefanx111 commented 1 year ago

With this fix i have this in console

L 02/07/2023 - 14:32:07: [SM] Exception reported: Array index out-of-bounds (index -1, limit 53)
L 02/07/2023 - 14:32:07: [SM] Blaming: weapons.smx
L 02/07/2023 - 14:32:07: [SM] Call stack trace:
L 02/07/2023 - 14:32:07: [SM]   [1] Line 72, weapons\hooks.sp::OnWeaponEquip
L 02/07/2023 - 14:32:07: [SM]   [3] EquipPlayerWeapon
L 02/07/2023 - 14:32:07: [SM]   [4] Line 60, weapons\hooks.sp::GiveNamedItemPost