This is more general C++, but its for a HL mod so.. If I have a string, is there a way to convert it to integer with a previously enumerated value?
eg, #define WEAPON_GARAND 2 then if I read in a string, and it happens to be "WEAPON_GARAND" can I know that that symbol is defined as 2? Obviously without doing an enormous if/else strcmp block.. Mugsy Day of Defeat mod _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders