CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 13 of 13

Thread: How do I??

Threaded View

  1. #2
    Join Date
    Mar 2007
    Posts
    375

    Re: How do I??

    Code:
    StatisticsValue statEffect = spell.TargetEffectValue;
    You cannot assign one float value to a whole structure. Do it like this
    Code:
    StatisticsValue statEffect = new StatisticsValue();
    statEffect.SomeVariable = spell.TargetEffectValue;


    If you want to multiply every float in a class with a value, try this
    Code:
    foreach(float f in spell)
        f = (f * ARCmodifier);
    Last edited by dahwan; September 12th, 2008 at 06:12 PM.
    Please vote the posts you find usefull.

    ---

    I'm back
    Bigger and badder
    Better and bolder
    Explaining stuff -
    With an improved vocabulary!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured