• Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

Why Is This Not Going Away!?! C# Visual Studio 13 *HELP*

UnboundGodz

Local Celebrity
Retired Staff
CC Dev Team
Local Celebrity
Community Elite
Community Veteran
Determined Poster
Active Member
Console ID Poster
I just returned to coding a bit and im working on a tool i was having bugs before but needed to update PS3Lib.dll to fix most which did however im now having this issue...

http://gyazo.com/55c9301d350f25520eef24de2afdfcca

Any ideas on how to fix this! Seems if i remove its still a issue, so if you know of what is wrong let me know lul
Might be easy fix and i might not see the issue yet!
 
deleted the ;

You mean,

Code:
}
else MessageBox.Show("Failed to attach the process!\n\nMake sure your ingame!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
        }
        private void metroTextBox1_Click(object sender, EventArgs e)
        {

The one right after MessageBoxIcon.Error); <=== ? gives another error!
 
Make sure to have it like this:
}
else
{
MessageBox.Show
 
Make sure to have it like this:
}
else
{
MessageBox.Show
"Still give me the 1 error } expected"

Code:
}
else
{
MessageBox.Show("Failed to attach the process!\n\nMake sure your ingame!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
 
Why do you have 3 of these ?
}
}
}

Try deleting some of them, or replacing some of them with {

You`ve just got to try some different stuff.


Make ssure you are also using the catch statement.
Not only the ELSE
 
Why do you have 3 of these ?
}
}
}

Try deleting some of them, or replacing some of them with {

You`ve just got to try some different stuff.


Make ssure you are also using the catch statement.
Not only the ELSE
i have lul i deleted up to the ; and then changed them around. still giving me error -_- atleast its not giving the errors from before haha! i dont know why its poping up, everything looks fine!
 
Why do you have 3 of these ?
}
}
}

Try deleting some of them, or replacing some of them with {

You`ve just got to try some different stuff.


Make ssure you are also using the catch statement.
Not only the ELSE
how would i have the catch statement coded? if you can
 
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PS3Lib;

namespace RTM_UnboundGodz_DEX___COD4___v1._0._0
{
    public partial class Form1 : MetroFramework.Forms.MetroForm
    {
        public static bool istmapi = true;
        private PS3API PS3 = new PS3API();
        public Form1()
        {
            InitializeComponent();
        }

        private void metroButton1_Click(object sender, EventArgs e)
        {
            {
{
if (!this.PS3.ConnectTarget(0))
{
MessageBox.Show("Impossible to connect. Check IP ", "Error...", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else
{
string str = string.Concat("You are now connected with this API : ", this.PS3.GetCurrentAPIName());
MessageBox.Show(str, "Connected!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);


if (istmapi == true)
{
if (PS3.AttachProcess())
{
MessageBox.Show("Successfully Attached the process!\n\nHope Your Satisfied :3", "Attached!", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else

MessageBox.Show("Failed to attach the process!\n\nMake sure your ingame!", "Failed...", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else if (istmapi == false)
{
if (PS3.AttachProcess())
{
MessageBox.Show("Successfully Attached the process!\n\nHope Your Satisfied :3", "Attached", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Failed to attach the process!\n\nMake sure your ingame!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}

}
        private void metroTextBox1_Click(object sender, EventArgs e)
        {
        }
 
A bit late but fixed:
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MetroFramework;

namespace RTM_UnboundGodz_DEX___COD4___v1._0._0
{
  public partial class Form1 : MetroFramework.Forms.MetroForm
  {
  public static bool istmapi = true;
  private PS3API PS3 = new PS3API();

  public Form1()
  {
  InitializeComponent();
  }

  private void metroButton1_Click(object sender, EventArgs e)
  {
  if (istmapi == true)
  {
  if (PS3.AttachProcess())
  {
  MessageBox.Show("Successfully Attached the process!\n\nHope Your Satisfied :3", "Attached!", MessageBoxButtons.OK, MessageBoxIcon.Information);
  }
  else
  {
  MessageBox.Show("Failed to attach the process!\n\nMake sure your ingame!", "Failed...", MessageBoxButtons.OK, MessageBoxIcon.Error);
  }
  }
  else if (istmapi == false)
  {
  if (PS3.AttachProcess())
  {
  MessageBox.Show("Successfully Attached the process!\n\nHope Your Satisfied :3", "Attached", MessageBoxButtons.OK, MessageBoxIcon.Information);
  }
  else
  {
  MessageBox.Show("Failed to attach the process!\n\nMake sure your ingame!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
  }
  }
  else
  {
  MessageBox.Show("Failed to attach the process!\n\nMake sure your ingame!", "Failed...", MessageBoxButtons.OK, MessageBoxIcon.Error);
  }
  }

  private void metroTextBox1_Click(object sender, EventArgs e)
  {

  }
  }
}
 
A bit late but fixed:
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MetroFramework;

namespace RTM_UnboundGodz_DEX___COD4___v1._0._0
{
  public partial class Form1 : MetroFramework.Forms.MetroForm
  {
  public static bool istmapi = true;
  private PS3API PS3 = new PS3API();

  public Form1()
  {
  InitializeComponent();
  }

  private void metroButton1_Click(object sender, EventArgs e)
  {
  if (istmapi == true)
  {
  if (PS3.AttachProcess())
  {
  MessageBox.Show("Successfully Attached the process!\n\nHope Your Satisfied :3", "Attached!", MessageBoxButtons.OK, MessageBoxIcon.Information);
  }
  else
  {
  MessageBox.Show("Failed to attach the process!\n\nMake sure your ingame!", "Failed...", MessageBoxButtons.OK, MessageBoxIcon.Error);
  }
  }
  else if (istmapi == false)
  {
  if (PS3.AttachProcess())
  {
  MessageBox.Show("Successfully Attached the process!\n\nHope Your Satisfied :3", "Attached", MessageBoxButtons.OK, MessageBoxIcon.Information);
  }
  else
  {
  MessageBox.Show("Failed to attach the process!\n\nMake sure your ingame!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
  }
  }
  else
  {
  MessageBox.Show("Failed to attach the process!\n\nMake sure your ingame!", "Failed...", MessageBoxButtons.OK, MessageBoxIcon.Error);
  }
  }

  private void metroTextBox1_Click(object sender, EventArgs e)
  {

  }
  }
}
This thread is 3 years old now....Wayyy too late.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
      Chat Bot: ngroves671 is our newest member. Welcome!
      Back
      Top