-- [ Picked text/plain from multipart/alternative ] dlls\env_screenoverlay.cpp
- CNetworkArray( string_t, m_iszOverlayNames, MAX_SCREEN_OVERLAYS ); - SendPropArray( SendPropString( SENDINFO_ARRAY( m_iszOverlayNames ), 0, SendProxy_String_tToString ), m_iszOverlayNames ), cl_dll\c_env_screenoverlay.cpp - char m_iszOverlayNames[ MAX_SCREEN_OVERLAYS ][255]; - RecvPropArray( RecvPropString( RECVINFO( m_iszOverlayNames[0]) ), m_iszOverlayNames ), It looks like they use char array as well as a SendProxy...this example may not be as useful as I hoped because it shows an array of string_t's...it shouldn't be too hard to reduce though On 4/22/06, Garry Newman <[EMAIL PROTECTED]> wrote: > -- > [ Picked text/plain from multipart/alternative ] > This got me too. > > I think in the end I found out that the receiver has to be an array of > chars. > > > > On 4/22/06, Benjamin Davison <[EMAIL PROTECTED]> wrote: > > > > -- > > [ Picked text/plain from multipart/alternative ] > > Now in theory I know how todo this, because I have done it with vectors > > and > > booleans but strings are elluding me for some reason :| > > > > hl2mp_gamerules.h > > > > CNetworkVar( string_t, m_sHudText); > > > > hl2mp_gamerules.cpp > > > > #ifdef CLIENT_DLL > > RecvPropString(RECVINFO( m_sHudText )), > > #else > > SendPropString(SENDINFO( m_sHudText)), > > #endif > > > > Personally I think the problem is in the send and receive but I have no > > idea > > what it could be, I use this method with vectors and booleans. > > > > entity_foo.cpp > > > > pRules->m_sHudText = AStringFoobio; > > > > That works because I can see it in the debugger working. > > > > But when I come to the client for example > > > > hud_foo.cpp > > > > And I want to put a string on the screen like so; pString = > > pRules->m_sHudText; > > > > HudText is always ""; > > > > This method usually works because I have used other data objects. > > > > Any help will be greatly appreciated. > > -- > > - Benjamin Davison > > -- > > > > _______________________________________________ > > 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 > > -- ts2do -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders