View Single Post
ENAK3
Member
Join Date: Apr 2013
Old 12-31-2013 , 13:22   Re: [CS:GO] Advanced Knife Shop
Reply With Quote #33

Attempted fix:

Check if knife entity is valid. Find and replace:

if(currentknife != INVALID_ENT_REFERENCE)

to

if(IsValidEntity(currentknife) && currentknife != INVALID_ENT_REFERENCE)

and

{RemovePlayerItem

to

if(IsValidEntity(iWeapon) && iWeapon != INVALID_ENT_REFERENCE) {RemovePlayerItem

Good luck.

Last edited by ENAK3; 12-31-2013 at 13:28.
ENAK3 is offline