--
[ Picked text/plain from multipart/alternative ]
Nevermind now :D
Got it to work 100% Thank you so much, you helped alot.
:D
And thanks to everone else who helped as well :D
-Kramer
On 4/9/06, Michael Kramer <[EMAIL PROTECTED]> wrote:
>
> Ok THank you, it works kinda, the only problem I have is my Panel command,
> err well
>
> 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.
>
> If you can answer that, then I will be forever indetted to you.
>
> On 4/9/06, Jorge Rodriguez <[EMAIL PROTECTED]> wrote:
>
> > Michael Kramer wrote:
> >
> > >--
> > >[ Picked text/plain from multipart/alternative ]
> > >This sounds like it would work, where would I put this code? In the
> > weapon?
> > >Or in another
> > >file all together?
> > >
> > >And thanks so much for you help.
> > >
> > >
> > Oh, if m_bCurrentSpellType is a weapon property it'd look more like:
> >
> > pPlayer->GetActiveWeapon()->m_bCurrentSpellType = iSpellType;
> >
> > but anyways, you can put it anywhere you like, as long as it's on the
> > server. Naturally though, you should put it in a relevant place, for
> > example inside the weapon's file or somewhere like that.
> >
> > --
> > Jorge "Vino" Rodriguez
> >
> >
> > _______________________________________________
> > 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