Questions

  • Thread starter Thread starter Kreig12
  • Start date Start date
K

Kreig12

Guest
Well, yes it is me again.

I have one question, and one error.

The question is how do I make it so the player can drop the primary weapon by pressing "g".
I have already added it to the keyboard options.
I just have to add the code.

And my error is:

client error LNK2001: unresolved external symbol "class CAmmoDef * __cdecl GetAmmoDef(void)" (?GetAmmoDef@@YAPAVCAmmoDef@@XZ)


There is 6 more of the exact same error, as well as:
client fatal error LNK1120: 1 unresolved externals


I just added it, incase it may help
 
An "Unresolved External Symbol" usually means that you've defined a class (usually in a header file) but not actually added the actual body.

-Angry Lawyer
 
Yeah, I think it was in ammodef.h.
But what would I add as the body?
 
No idea. In theory, if you didn't write that header, it should already have a body.

Either that or you're including an unnessecary .h in one of your .cpp files

-Angry Lawyer
 
I still get that error message, since my friend sent me his, which has a body I guess, but it still gets the same error.
 
Back
Top