Raised This Month: $51 Target: $400
 12% 

How do I use KeyValues with this?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 10-22-2005 , 19:32   How do I use KeyValues with this?
Reply With Quote #1

I get linker errors on unresolved external symbols..

Also, I get yelled at b/c this isn't of typeIServerPluginCallbacks *

Code:
	KeyValues *kv = new KeyValues( "msg" );
	kv->SetString( "title", "Hello" );
	kv->SetString( "msg", "Hello there" );
	kv->SetColor( "color", Color( 255, 0, 0, 255 ));
	kv->SetInt( "level", 5);
	kv->SetInt( "time", 10);
	m_Helpers->CreateMessage( pEntity, DIALOG_MSG, kv, this );
	kv->deleteThis();
Any ideas?
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
BAILOPAN
Join Date: Jan 2004
Old 10-22-2005 , 22:41  
Reply With Quote #2

add in keyvalues.cpp or whatever into your project
__________________
egg
BAILOPAN is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 10-24-2005 , 19:44  
Reply With Quote #3

k did that, now I get yelled at because of CUtlBuffer:

Quote:
error LNK2019: unresolved external symbol "public: void __thiscall CUtlBuffer:utString(char const *)" (?PutString@CUtlBuffer@@QAEXPBD@Z) referenced in function "public: bool __thiscall KeyValues::WriteAsBinary(class CUtlBuffer &)" (?WriteAsBinary@KeyValues@@QAE_NAAVCUtlBuffer @@@Z)
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
BAILOPAN
Join Date: Jan 2004
Old 10-24-2005 , 20:01  
Reply With Quote #4

also add in bitbuf.cpp I think
__________________
egg
BAILOPAN is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 10-24-2005 , 20:19  
Reply With Quote #5

Once you have KeyValues.cpp and utlbuffer.cpp, linker errors should vanish.
__________________
sslice is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 10-24-2005 , 21:47  
Reply With Quote #6

thanks got it workin.. needed the utl one
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode