I'm having some problems when it comes to the bots selecting a team. I get this issue when compiling:
Code:
--------------------Configuration: dll - Win32 Debug--------------------
Linking...
Creating library .\Debug/csbots.lib and object .\Debug/csbots.exp
dllapi.obj : error LNK2001: unresolved external symbol "void __cdecl FakeClientCommand(struct edict_s *,char *,char *,char *)" (?FakeClientCommand@@YAXPAUedict_s@@PAD11@Z)
.\Debug/csbots.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
csbots.dll - 2 error(s), 0 warning(s)
My FakeClientCommand line:
Code:
FakeClientCommand(pEdict, "jointeam", "2", NULL);
I think this may have to do with these warnings I get where I put in the code:
Code:
D:\Documents and Settings\Administrator.ANDREW\My Documents\csbots\dllapi.cpp(66) : warning C4700: local variable 'pEdict' used without having been initialized
If so, how do I initialize pEdict? I searched the HPBBot source code but couldn't find where it did it.