You are viewing our Forum Archives. To view or take place in current topics click here.
Help??? C# Error?? (+REP) Mw3
Posted:

Help??? C# Error?? (+REP) Mw3Posted:

Rgh-Xp-Lobby
  • Wise One
Status: Offline
Joined: Jan 27, 201311Year Member
Posts: 562
Reputation Power: 24
Status: Offline
Joined: Jan 27, 201311Year Member
Posts: 562
Reputation Power: 24
can anyone help me with this

[ Register or Signin to view external links. ]
#2. Posted:
sparks2709
  • Challenger
Status: Offline
Joined: Nov 02, 201113Year Member
Posts: 112
Reputation Power: 4
Status: Offline
Joined: Nov 02, 201113Year Member
Posts: 112
Reputation Power: 4
it doesn't recognise what they are so u need to define them
#3. Posted:
SimbaXe
  • Gold Gifter
Status: Offline
Joined: Dec 22, 201113Year Member
Posts: 2,821
Reputation Power: 143
Status: Offline
Joined: Dec 22, 201113Year Member
Posts: 2,821
Reputation Power: 143
You need to define the code bro
#4. Posted:
Botch
  • TTG Senior
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
LMFAO. You forgot your identifier for the statement.
(i.e. Jtag.xbCon.etc.)

For clientID you need to define clientID in your void, like so.

private void Botch(int clientID)
{
//your stuff
}
#5. Posted:
Rgh-Xp-Lobby
  • Wise One
Status: Offline
Joined: Jan 27, 201311Year Member
Posts: 562
Reputation Power: 24
Status: Offline
Joined: Jan 27, 201311Year Member
Posts: 562
Reputation Power: 24
i did that and i still get the error
#6. Posted:
Botch
  • TTG Senior
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
Rgh-Xp-Lobby wrote i did that and i still get the error

Maybe show me? And also, tell me what you are trying to do. I'm good, but not good enough to tell from offsets
#7. Posted:
RC4
  • Rising Star
Status: Offline
Joined: Feb 18, 201212Year Member
Posts: 773
Reputation Power: 32
Status: Offline
Joined: Feb 18, 201212Year Member
Posts: 773
Reputation Power: 32
Show me where you define the variable clientID
#8. Posted:
Rgh-Xp-Lobby
  • Wise One
Status: Offline
Joined: Jan 27, 201311Year Member
Posts: 562
Reputation Power: 24
Status: Offline
Joined: Jan 27, 201311Year Member
Posts: 562
Reputation Power: 24
Botch wrote
Rgh-Xp-Lobby wrote i did that and i still get the error

Maybe show me? And also, tell me what you are trying to do. I'm good, but not good enough to tell from offsets


its the Walking AC130 code this is what i ave thats it

 private void button3_Click_1(object sender, EventArgs e)
        {
            uint num;
            byte[] buffer = new byte[3];
            buffer[2] = 0x6a;
            byte[] data = buffer;
            this.xbCon.DebugTarget.SetMemory(this.getClientState(clientID) + 0x141, 3, data, out num);
            this.xbCon.DebugTarget.SetMemory(this.getClientState(clientID) + 0x275, 3, data, out num);
            this.xbCon.DebugTarget.SetMemory(this.getClientState(clientID) + 0x371, 3, data, out num);
            this.xbCon.DebugTarget.SetMemory(this.getClientState(clientID) + 0x43d, 3, data, out num);

        }
    }
}


and then im getting this [ Register or Signin to view external links. ]
#9. Posted:
Rgh-Xp-Lobby
  • Wise One
Status: Offline
Joined: Jan 27, 201311Year Member
Posts: 562
Reputation Power: 24
Status: Offline
Joined: Jan 27, 201311Year Member
Posts: 562
Reputation Power: 24
sparks2709 wrote it doesn't recognise what they are so u need to define them


Yes i no that lol how do i define them?? or what is the code to define them
#10. Posted:
Botch
  • TTG Senior
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
Rgh-Xp-Lobby wrote
Botch wrote
Rgh-Xp-Lobby wrote i did that and i still get the error

Maybe show me? And also, tell me what you are trying to do. I'm good, but not good enough to tell from offsets


its the Walking AC130 code this is what i ave thats it

 private void button3_Click_1(object sender, EventArgs e)
        {
            uint num;
            byte[] buffer = new byte[3];
            buffer[2] = 0x6a;
            byte[] data = buffer;
            this.xbCon.DebugTarget.SetMemory(this.getClientState(clientID) + 0x141, 3, data, out num);
            this.xbCon.DebugTarget.SetMemory(this.getClientState(clientID) + 0x275, 3, data, out num);
            this.xbCon.DebugTarget.SetMemory(this.getClientState(clientID) + 0x371, 3, data, out num);
            this.xbCon.DebugTarget.SetMemory(this.getClientState(clientID) + 0x43d, 3, data, out num);

        }
    }
}


and then im getting this [ Register or Signin to view external links. ]

You don't have clientID defined, and as I said before you need to add Jtag instead of this. Unless you are using more then one class, 'this' is pointless.

Here is what you want to do.

private void AC130()
{
int clientID = Convert.ToInt32(numericUpDown1.Value)//for clients
uint num;
            byte[] buffer = new byte[3];
            buffer[2] = 0x6a;
            byte[] data = buffer;
            this.xbCon.DebugTarget.SetMemory(this.getClientState(clientID) + 0x141, 3, data, out num);
            this.xbCon.DebugTarget.SetMemory(this.getClientState(clientID) + 0x275, 3, data, out num);
            this.xbCon.DebugTarget.SetMemory(this.getClientState(clientID) + 0x371, 3, data, out num);
            this.xbCon.DebugTarget.SetMemory(this.getClientState(clientID) + 0x43d, 3, data, out num);
}

private void button3_Click(object sender, EventArgs e)
{
AC130();
}


Or something along those lines. I whipped that up in a couple seconds, so don't paste that directly in, but use it like a guideline until you get it work ;)
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.