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

Threaded View

  1. #1
    Join Date
    Jun 2008
    Posts
    154

    [RESOLVED] How to make debug messages

    Is there a way to send messages to error box or something. I have some steps in a method that sends feedback to a textbox. The problem is this part

    Code:
                    //If parryroll was greater than their ParrySkill then they failed
                    if (parry == true) //parry ability true, opponent can Parry!
                    {
                        parryrate = parrySkillOpponent; //Opponent's skill in Parry
                        Random randParry = new Random();
                        parryroll = Math.Abs(randParry.Next(1, 100));
                        if (parrySkillOpponent < parryroll)
                        {
    never seems to happen, even when I set parrySkillOpponent over 100.

    (BTW) The Parry skill is enabled true by a check box. Maybe I am not correctly checking if the checkbox has been checked? If so what is the correct way to check if a Checkbox has been checked?
    Last edited by bixel; March 12th, 2009 at 09:04 AM.

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