To save data inbetween map changes, using KeyValues and saving and loading from file works wonders.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Chandler Sent: Saturday, May 05, 2007 4:29 AM To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] String_t conversions Well fixed it by reducing the size of the string from weapon_cougar_magnum to weapon_cougar_mag. Very weird indeed. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Chandler Sent: Sunday, April 29, 2007 5:10 PM To: hlcoders@list.valvesoftware.com Subject: [hlcoders] String_t conversions Well atm I use the same method of the concommand give to dynamic spawn items which is: string_t iszItem = AllocPooledString( pszItem ); // Make a copy of the classname DevMsg("SpawnItem: Trying to spawn [%s] \n", STRING(iszItem)); CBaseCombatWeapon *lastItemSpawned=(CBaseCombatWeapon*)CreateEntityByName(STRING(iszItem)); But I have found that in doing so it tends to chop up long strings for example: Before: Attemting to spawn [weapon_cougar_magnum] Middle: SpawnItem: Trying to spawn [weapon_couga%|†] After : Attempted to create unknown entity type weapon_couga%|†! Is there a better way of doing this or fixing this so it works. I searched the net and couldn’t find any thing. Also is any way to save vars between map changes without using cvars? Mark _______________________________________________ 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 __________ NOD32 2108 (20070312) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders