PDA

View Full Version : How to show a KeyValue data in the MOTD??


guojkd
09-04-2005, 00:47
I use this:

MRecipientFilter filter;
filter.AddRecipient(getIndexFromUserID(player Info->GetUserID()));
bf_write *msgs = engine->UserMessageBegin(&filter, 1);

msgs->WriteString(name);
msgs->WriteByte(bShow ? 1:0);
msgs->WriteByte(count);
while(subkey){
msgs->WriteString(subkey->GetName());
msgs->WriteString(subkey->GetString());
subkey = subkey->GetNextKey();
}
engine->MessageEnd();

But the Link errors "LNK2019" come out.

Is there any method to show it correctly?
Thanks for help!!!

guojkd
09-06-2005, 04:02
I appreciate for any help!!
Thanks !
Cause I need it work in a short time!!
Please!!!!!!!!!!!~~ :cry:

L. Duke
09-07-2005, 11:36
You need to know what function it's not linking to. Then figure out why that function can't be linked. Is it a virtual function? If not you won't be able to link to it.