--
[ Picked text/plain from multipart/alternative ]
Ok I got it not to give me the error, but it still is not working,

This is how i get the value

CSDKGameRules *pRules = SDKGameRules();
#ifdef CLIENT_DLL
    engine->ClientCmd("ToggleSpellPanel");
    pRules->m_bCurrentSpellType = spell->spellId;
#endif

spell is a VPANEL, and the spellId is an int that I created, it is set from
my panel with

int b = m_pSpells->GetSelectedItem(0);
    m_pCurrentSpell = m_pSpells->GetItemData(b);
    KeyValues *blah = m_pCurrentSpell->kv;
    spell->spellId = blah->GetInt("id");

Which basically gets the Selected Items ID (which I set ) and then sets that
as spell->spellId;

on my weapon (weapon_magic) I have

    CSDKGameRules *pRules = SDKGameRules();
#ifdef CLIENT_DLL
   pRules->m_bCurrentSpellType = spell->spellId;
#endif

but it still doesn't seem to want to send/recv the correct prop.
Howdo I force it to send it to the server?

You see I need my client to send my server a variable, while the code it
seems
is having the server send the client a variable. and I have tried reversing
them
and it still doesn't want to work :(.

Any other ideas?

On 4/9/06, Michael Kramer <[EMAIL PROTECTED]> wrote:
>
> Alright, well my CNetworkVar is an int, but I guess I accidently named it
> m_b, so you must have
> thought is was a boolean. Anyway, Alright I have done what you said
>
> and basically I have
>
> #ifdef CLIENT_DLL
>     engine->ClientCmd("ToggleSpellPanel");
>     CSDKGameRules *pRules = SDKGameRules();
>     pRules->m_bCurrentSpellType = spell->spellId;
> #endif
>
> and I get the error m_bCurrentSpellType is not a member of C_SDKGameRules,
>
> do I need to declare it there too?
>
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to