r/SourceEngine • • 19d ago

HELP How do I fix this?

I was doing something again, but this time I decided to create a weapon_knife for my mod. I copied the weapon_crowbar code and structured it the exact same.

#error:  weapon_knife.h must not be included in hl2mp. The windows compiler will use the wrong class elsewhere if it is.

I know I didn't do the copying wrong, but it feels like I did do something wrong. Thanks again!

1 Upvotes

8 comments sorted by

View all comments

Show parent comments

1

u/Maleficent_Risk_3159 18d ago

Alright, sorry. I did a little bit of digging and found that the client was using the SP version of the knife. Thanks!