Well, I guess the length needed a +1 at the end, my bad. I got it not crashing but I'm not sure why it doesn't seem to be received by the client. Is there a function I need to call to send the updated string table to the client?
----- Original Message ----- From: "Daniel Jennings" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, March 31, 2005 5:32 PM Subject: Re: [hlcoders] String Table > Okay, that was a dumb question, I figured it out within minutes of posting, > but I have another question since I'm now segfaulting. > > Here's my code: > > char message = "Here is your striiiiiing"; > > INetworkStringTable *g_pStringTableInfoPanel = > networkstringtable->FindTable("InfoPanel"); > g_pStringTableInfoPanel->AddString( "string001", sizeof(message), message ); > //CRASHES HERE ^ > Msg(":-( Never gets here.\n"); > > > Here's the backtrace of the crash: > #0 0x00359175 in memcpy () > #1 0x00e3c5c5 in CNetworkStringTableItem::SetUserData () > #2 0x00e39d15 in CNetworkStringTable::AddString () > > > > ----- Original Message ----- > From: "Daniel Jennings" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Thursday, March 31, 2005 5:05 PM > Subject: [hlcoders] String Table > > > > HL2DM SDK: From a source file I created, how can I access the String table > > in order to append my string to the table? I think the interface I want > is: > > INetworkStringTableContainer *networkstringtable = NULL; > > > > Which is from GameInterface.cpp > > > > This is probably a simple problem, but for the life of me I couldn't > figure > > it out. > > > > Thank you very much! > > > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

