Michael Kramer wrote:
void CSpellPanel::SelectSpell( void ){ int b = m_pSpells->GetSelectedItem(0); m_pCurrentSpell = m_pSpells->GetItemData(b); KeyValues *blah = m_pCurrentSpell->kv; spell->spellId = blah->GetInt("id"); const char *test = "spelltype "; test += blah->GetInt("id"); engine->ServerCmd("spelltype 7",true); //spell->spellId = 6; return; }howdo I add an int into a const char?, or, howdo I use the GetString() function from KeyValues.
Look at VarArgs() in the SDK, and do a google search on sprintf(). -- Jorge "Vino" Rodriguez _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

