You are viewing our Forum Archives. To view or take place in current topics click here.
I have another error ;(
Posted:

I have another error ;(Posted:

MHUTricK
  • Powerhouse
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
Hello, I am here in need help of another error I have come across.. I'm guessing there is like one or two things I did wrong that made all of this wrong? But I am not sure.
My 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 XRPCLib;
using XDevkit;
using XRPCPlusPlus;

namespace MW2_XRPC_Tool_TU8
{
    public partial class Form1 : Form
    {
        XRPC Jtag = new XRPC();
        public uint SV = 0x82254940;
        public int mflags = 0;
        public Form1()
        {
            InitializeComponent();
        }

        public static uint getPlayerState(int client)
        {
            return (0x82F03600 + (uint)(client * 0x280) + 0x158);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Jtag.Connect();
            if (Jtag.activeConnection)
                MessageBox.Show("Connected!");
            else
                MessageBox.Show("Failed");
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            int client = (int)numericUpDown1.Value;
            Jtag.Call(SV, client, 1, textBox1.Text);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Jtag.WriteFloat(0x8200183C, 999f);
            Jtag.WriteFloat(0x82000858, 999f);
            Jtag.Call(SV, -1, 1, "c \"Super Jump ^On!\"");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Jtag.WriteFloat(0x8200183C, 39f);
            Jtag.Call(SV, -1, 1, "c \"Normal Jump ^2On!\"");
        }

        private void button7_Click(object sender, EventArgs e)
        {
            int client = (int)numericUpDown2.Value;
            if(checkBox1.Checked)
            {
                Jtag.Call(SV, client, 1, "c \"" + textBox2.Text + "\"");
            }
            else
            {
                Jtag.Call(SV, client, 1, "f \"" + textBox2.Text + "\"");
            }
           
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Jtag.WriteByte(0x82104093, 0x1);
            Jtag.Call(SV, 0, 1, "c \"Laser ^2On!\"");
        }

        private void button6_Click(object sender, EventArgs e)
        {
            Jtag.WriteByte(0x82104093, 0x0);
            Jtag.Call(SV, 0, 1, "c \"Laser ^1Off!\"");
        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void button8_Click(object sender, EventArgs e)
        {
        int client = (int)numericUpDown3.Value;
            if (mflags == 0)
            {
                if (client == -1)
                    for (int i = 0; i < 0x11; i++)
                    {
            Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
        }
        }
            Jtag.WriteInt32(getPlayerState(client)+ 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
            mflags++;
        }
            else if(mflags == 1)
            {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
                    Jtag.Call(SV, -1, 1, "c \"UFO Mode ^2Given!\"");
                }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"UFO Mode ^2Given!\"");
            mflags++;
        }
        else if (mflags == 2)
        {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayertate(i) + 0x3240, 0);
                    Jtag.Call(SV, -1, 1, "c \"Normal Movement ^2Given!\"");
                 }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"Normal Movement ^2Given!\"");
            mflags = 0;
        }
    }
}


My errors:
Error   1   Invalid token 'else' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   13   MW2 XRPC Tool TU8
Error   2   Invalid token '==' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   28   MW2 XRPC Tool TU8
Error   3   Invalid token '==' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   118   24   MW2 XRPC Tool TU8
Error   4   Invalid token '0x11' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   37   MW2 XRPC Tool TU8
Error   5   Type expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   37   MW2 XRPC Tool TU8
Error   6   Invalid token '++' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   44   MW2 XRPC Tool TU8
Error   7   Invalid token '(' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   36   MW2 XRPC Tool TU8
Error   8   Method must have a return type   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   37   MW2 XRPC Tool TU8
Error   9   Identifier expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   53   MW2 XRPC Tool TU8
Error   10   ; expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   55   MW2 XRPC Tool TU8
Error   11   Invalid token '(' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   30   MW2 XRPC Tool TU8
Error   12   Invalid token ',' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   33   MW2 XRPC Tool TU8
Error   13   A namespace cannot directly contain members such as fields or methods   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   126   13   MW2 XRPC Tool TU8
Error   14   Type or namespace definition, or end-of-file expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   129   9   MW2 XRPC Tool TU8
Error   15   'MW2_XRPC_Tool_TU8.Form1.mflags' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   21   MW2 XRPC Tool TU8
Error   16   The type or namespace name 'client' could not be found (are you missing a using directive or an assembly reference?)   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   118   17   MW2 XRPC Tool TU8
Error   17   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   33   MW2 XRPC Tool TU8
Error   18   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   43   MW2 XRPC Tool TU8
Error   19   'MW2_XRPC_Tool_TU8.Form1.Jtag' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   21   MW2 XRPC Tool TU8
Error   20   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   52   MW2 XRPC Tool TU8
Error   21   'MW2_XRPC_Tool_TU8.Form1.Jtag' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   21   MW2 XRPC Tool TU8
Error   22   'MW2_XRPC_Tool_TU8.Form1.SV' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   31   MW2 XRPC Tool TU8
#2. Posted:
Nissan
  • Ultra Gifter
Status: Offline
Joined: Sep 20, 201212Year Member
Posts: 2,136
Reputation Power: 312
Status: Offline
Joined: Sep 20, 201212Year Member
Posts: 2,136
Reputation Power: 312
MHU_Lobbies wrote Hello, I am here in need help of another error I have come across.. I'm guessing there is like one or two things I did wrong that made all of this wrong? But I am not sure.
My 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 XRPCLib;
using XDevkit;
using XRPCPlusPlus;

namespace MW2_XRPC_Tool_TU8
{
    public partial class Form1 : Form
    {
        XRPC Jtag = new XRPC();
        public uint SV = 0x82254940;
        public int mflags = 0;
        public Form1()
        {
            InitializeComponent();
        }

        public static uint getPlayerState(int client)
        {
            return (0x82F03600 + (uint)(client * 0x280) + 0x158);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Jtag.Connect();
            if (Jtag.activeConnection)
                MessageBox.Show("Connected!");
            else
                MessageBox.Show("Failed");
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            int client = (int)numericUpDown1.Value;
            Jtag.Call(SV, client, 1, textBox1.Text);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Jtag.WriteFloat(0x8200183C, 999f);
            Jtag.WriteFloat(0x82000858, 999f);
            Jtag.Call(SV, -1, 1, "c \"Super Jump ^On!\"");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Jtag.WriteFloat(0x8200183C, 39f);
            Jtag.Call(SV, -1, 1, "c \"Normal Jump ^2On!\"");
        }

        private void button7_Click(object sender, EventArgs e)
        {
            int client = (int)numericUpDown2.Value;
            if(checkBox1.Checked)
            {
                Jtag.Call(SV, client, 1, "c \"" + textBox2.Text + "\"");
            }
            else
            {
                Jtag.Call(SV, client, 1, "f \"" + textBox2.Text + "\"");
            }
           
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Jtag.WriteByte(0x82104093, 0x1);
            Jtag.Call(SV, 0, 1, "c \"Laser ^2On!\"");
        }

        private void button6_Click(object sender, EventArgs e)
        {
            Jtag.WriteByte(0x82104093, 0x0);
            Jtag.Call(SV, 0, 1, "c \"Laser ^1Off!\"");
        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void button8_Click(object sender, EventArgs e)
        {
        int client = (int)numericUpDown3.Value;
            if (mflags == 0)
            {
                if (client == -1)
                    for (int i = 0; i < 0x11; i++)
                    {
            Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
        }
        }
            Jtag.WriteInt32(getPlayerState(client)+ 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
            mflags++;
        }
            else if(mflags == 1)
            {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
                    Jtag.Call(SV, -1, 1, "c \"UFO Mode ^2Given!\"");
                }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"UFO Mode ^2Given!\"");
            mflags++;
        }
        else if (mflags == 2)
        {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayertate(i) + 0x3240, 0);
                    Jtag.Call(SV, -1, 1, "c \"Normal Movement ^2Given!\"");
                 }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"Normal Movement ^2Given!\"");
            mflags = 0;
        }
    }
}


My errors:
Error   1   Invalid token 'else' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   13   MW2 XRPC Tool TU8
Error   2   Invalid token '==' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   28   MW2 XRPC Tool TU8
Error   3   Invalid token '==' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   118   24   MW2 XRPC Tool TU8
Error   4   Invalid token '0x11' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   37   MW2 XRPC Tool TU8
Error   5   Type expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   37   MW2 XRPC Tool TU8
Error   6   Invalid token '++' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   44   MW2 XRPC Tool TU8
Error   7   Invalid token '(' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   36   MW2 XRPC Tool TU8
Error   8   Method must have a return type   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   37   MW2 XRPC Tool TU8
Error   9   Identifier expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   53   MW2 XRPC Tool TU8
Error   10   ; expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   55   MW2 XRPC Tool TU8
Error   11   Invalid token '(' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   30   MW2 XRPC Tool TU8
Error   12   Invalid token ',' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   33   MW2 XRPC Tool TU8
Error   13   A namespace cannot directly contain members such as fields or methods   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   126   13   MW2 XRPC Tool TU8
Error   14   Type or namespace definition, or end-of-file expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   129   9   MW2 XRPC Tool TU8
Error   15   'MW2_XRPC_Tool_TU8.Form1.mflags' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   21   MW2 XRPC Tool TU8
Error   16   The type or namespace name 'client' could not be found (are you missing a using directive or an assembly reference?)   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   118   17   MW2 XRPC Tool TU8
Error   17   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   33   MW2 XRPC Tool TU8
Error   18   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   43   MW2 XRPC Tool TU8
Error   19   'MW2_XRPC_Tool_TU8.Form1.Jtag' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   21   MW2 XRPC Tool TU8
Error   20   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   52   MW2 XRPC Tool TU8
Error   21   'MW2_XRPC_Tool_TU8.Form1.Jtag' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   21   MW2 XRPC Tool TU8
Error   22   'MW2_XRPC_Tool_TU8.Form1.SV' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   31   MW2 XRPC Tool TU8


Im not the best with c# but i think this could be your problem (not sure try it see what happens) :
private void button1_Click(object sender, EventArgs e)
        {
            Jtag.Connect();
            if (Jtag.activeConnection)
             {
                MessageBox.Show("Connected!");
            }
            else
            {
                MessageBox.Show("Failed");
            }
        }
#3. Posted:
MHUTricK
  • Powerhouse
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
RGHJTAGZ wrote
MHU_Lobbies wrote Hello, I am here in need help of another error I have come across.. I'm guessing there is like one or two things I did wrong that made all of this wrong? But I am not sure.
My 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 XRPCLib;
using XDevkit;
using XRPCPlusPlus;

namespace MW2_XRPC_Tool_TU8
{
    public partial class Form1 : Form
    {
        XRPC Jtag = new XRPC();
        public uint SV = 0x82254940;
        public int mflags = 0;
        public Form1()
        {
            InitializeComponent();
        }

        public static uint getPlayerState(int client)
        {
            return (0x82F03600 + (uint)(client * 0x280) + 0x158);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Jtag.Connect();
            if (Jtag.activeConnection)
                MessageBox.Show("Connected!");
            else
                MessageBox.Show("Failed");
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            int client = (int)numericUpDown1.Value;
            Jtag.Call(SV, client, 1, textBox1.Text);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Jtag.WriteFloat(0x8200183C, 999f);
            Jtag.WriteFloat(0x82000858, 999f);
            Jtag.Call(SV, -1, 1, "c \"Super Jump ^On!\"");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Jtag.WriteFloat(0x8200183C, 39f);
            Jtag.Call(SV, -1, 1, "c \"Normal Jump ^2On!\"");
        }

        private void button7_Click(object sender, EventArgs e)
        {
            int client = (int)numericUpDown2.Value;
            if(checkBox1.Checked)
            {
                Jtag.Call(SV, client, 1, "c \"" + textBox2.Text + "\"");
            }
            else
            {
                Jtag.Call(SV, client, 1, "f \"" + textBox2.Text + "\"");
            }
           
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Jtag.WriteByte(0x82104093, 0x1);
            Jtag.Call(SV, 0, 1, "c \"Laser ^2On!\"");
        }

        private void button6_Click(object sender, EventArgs e)
        {
            Jtag.WriteByte(0x82104093, 0x0);
            Jtag.Call(SV, 0, 1, "c \"Laser ^1Off!\"");
        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void button8_Click(object sender, EventArgs e)
        {
        int client = (int)numericUpDown3.Value;
            if (mflags == 0)
            {
                if (client == -1)
                    for (int i = 0; i < 0x11; i++)
                    {
            Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
        }
        }
            Jtag.WriteInt32(getPlayerState(client)+ 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
            mflags++;
        }
            else if(mflags == 1)
            {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
                    Jtag.Call(SV, -1, 1, "c \"UFO Mode ^2Given!\"");
                }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"UFO Mode ^2Given!\"");
            mflags++;
        }
        else if (mflags == 2)
        {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayertate(i) + 0x3240, 0);
                    Jtag.Call(SV, -1, 1, "c \"Normal Movement ^2Given!\"");
                 }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"Normal Movement ^2Given!\"");
            mflags = 0;
        }
    }
}


My errors:
Error   1   Invalid token 'else' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   13   MW2 XRPC Tool TU8
Error   2   Invalid token '==' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   28   MW2 XRPC Tool TU8
Error   3   Invalid token '==' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   118   24   MW2 XRPC Tool TU8
Error   4   Invalid token '0x11' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   37   MW2 XRPC Tool TU8
Error   5   Type expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   37   MW2 XRPC Tool TU8
Error   6   Invalid token '++' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   44   MW2 XRPC Tool TU8
Error   7   Invalid token '(' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   36   MW2 XRPC Tool TU8
Error   8   Method must have a return type   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   37   MW2 XRPC Tool TU8
Error   9   Identifier expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   53   MW2 XRPC Tool TU8
Error   10   ; expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   55   MW2 XRPC Tool TU8
Error   11   Invalid token '(' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   30   MW2 XRPC Tool TU8
Error   12   Invalid token ',' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   33   MW2 XRPC Tool TU8
Error   13   A namespace cannot directly contain members such as fields or methods   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   126   13   MW2 XRPC Tool TU8
Error   14   Type or namespace definition, or end-of-file expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   129   9   MW2 XRPC Tool TU8
Error   15   'MW2_XRPC_Tool_TU8.Form1.mflags' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   21   MW2 XRPC Tool TU8
Error   16   The type or namespace name 'client' could not be found (are you missing a using directive or an assembly reference?)   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   118   17   MW2 XRPC Tool TU8
Error   17   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   33   MW2 XRPC Tool TU8
Error   18   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   43   MW2 XRPC Tool TU8
Error   19   'MW2_XRPC_Tool_TU8.Form1.Jtag' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   21   MW2 XRPC Tool TU8
Error   20   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   52   MW2 XRPC Tool TU8
Error   21   'MW2_XRPC_Tool_TU8.Form1.Jtag' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   21   MW2 XRPC Tool TU8
Error   22   'MW2_XRPC_Tool_TU8.Form1.SV' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   31   MW2 XRPC Tool TU8


Im not the best with c# but i think this could be your problem (not sure try it see what happens) :
private void button1_Click(object sender, EventArgs e)
        {
            Jtag.Connect();
            if (Jtag.activeConnection)
             {
                MessageBox.Show("Connected!");
            }
            else
            {
                MessageBox.Show("Failed");
            }
        }


This error happened after I added
        private void button8_Click(object sender, EventArgs e)
        {
        int client = (int)numericUpDown3.Value;
            if (mflags == 0)
            {
                if (client == -1)
                    for (int i = 0; i < 0x11; i++)
                    {
            Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
        }
        }
            Jtag.WriteInt32(getPlayerState(client)+ 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
            mflags++;
        }
            else if(mflags == 1)
            {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
                    Jtag.Call(SV, -1, 1, "c \"UFO Mode ^2Given!\"");
                }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"UFO Mode ^2Given!\"");
            mflags++;
        }
        else if (mflags == 2)
        {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayertate(i) + 0x3240, 0);
                    Jtag.Call(SV, -1, 1, "c \"Normal Movement ^2Given!\"");
                 }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"Normal Movement ^2Given!\"");
            mflags = 0;
        }
    }
}
#4. Posted:
ZZ9_x_iHaXoRZz
  • Rigged Luck
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
MHU_Lobbies wrote
RGHJTAGZ wrote
MHU_Lobbies wrote Hello, I am here in need help of another error I have come across.. I'm guessing there is like one or two things I did wrong that made all of this wrong? But I am not sure.
My 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 XRPCLib;
using XDevkit;
using XRPCPlusPlus;

namespace MW2_XRPC_Tool_TU8
{
    public partial class Form1 : Form
    {
        XRPC Jtag = new XRPC();
        public uint SV = 0x82254940;
        public int mflags = 0;
        public Form1()
        {
            InitializeComponent();
        }

        public static uint getPlayerState(int client)
        {
            return (0x82F03600 + (uint)(client * 0x280) + 0x158);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Jtag.Connect();
            if (Jtag.activeConnection)
                MessageBox.Show("Connected!");
            else
                MessageBox.Show("Failed");
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            int client = (int)numericUpDown1.Value;
            Jtag.Call(SV, client, 1, textBox1.Text);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Jtag.WriteFloat(0x8200183C, 999f);
            Jtag.WriteFloat(0x82000858, 999f);
            Jtag.Call(SV, -1, 1, "c \"Super Jump ^On!\"");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Jtag.WriteFloat(0x8200183C, 39f);
            Jtag.Call(SV, -1, 1, "c \"Normal Jump ^2On!\"");
        }

        private void button7_Click(object sender, EventArgs e)
        {
            int client = (int)numericUpDown2.Value;
            if(checkBox1.Checked)
            {
                Jtag.Call(SV, client, 1, "c \"" + textBox2.Text + "\"");
            }
            else
            {
                Jtag.Call(SV, client, 1, "f \"" + textBox2.Text + "\"");
            }
           
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Jtag.WriteByte(0x82104093, 0x1);
            Jtag.Call(SV, 0, 1, "c \"Laser ^2On!\"");
        }

        private void button6_Click(object sender, EventArgs e)
        {
            Jtag.WriteByte(0x82104093, 0x0);
            Jtag.Call(SV, 0, 1, "c \"Laser ^1Off!\"");
        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void button8_Click(object sender, EventArgs e)
        {
        int client = (int)numericUpDown3.Value;
            if (mflags == 0)
            {
                if (client == -1)
                    for (int i = 0; i < 0x11; i++)
                    {
            Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
        }
        }
            Jtag.WriteInt32(getPlayerState(client)+ 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
            mflags++;
        }
            else if(mflags == 1)
            {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
                    Jtag.Call(SV, -1, 1, "c \"UFO Mode ^2Given!\"");
                }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"UFO Mode ^2Given!\"");
            mflags++;
        }
        else if (mflags == 2)
        {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayertate(i) + 0x3240, 0);
                    Jtag.Call(SV, -1, 1, "c \"Normal Movement ^2Given!\"");
                 }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"Normal Movement ^2Given!\"");
            mflags = 0;
        }
    }
}


My errors:
Error   1   Invalid token 'else' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   13   MW2 XRPC Tool TU8
Error   2   Invalid token '==' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   28   MW2 XRPC Tool TU8
Error   3   Invalid token '==' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   118   24   MW2 XRPC Tool TU8
Error   4   Invalid token '0x11' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   37   MW2 XRPC Tool TU8
Error   5   Type expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   37   MW2 XRPC Tool TU8
Error   6   Invalid token '++' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   44   MW2 XRPC Tool TU8
Error   7   Invalid token '(' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   36   MW2 XRPC Tool TU8
Error   8   Method must have a return type   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   37   MW2 XRPC Tool TU8
Error   9   Identifier expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   53   MW2 XRPC Tool TU8
Error   10   ; expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   55   MW2 XRPC Tool TU8
Error   11   Invalid token '(' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   30   MW2 XRPC Tool TU8
Error   12   Invalid token ',' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   33   MW2 XRPC Tool TU8
Error   13   A namespace cannot directly contain members such as fields or methods   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   126   13   MW2 XRPC Tool TU8
Error   14   Type or namespace definition, or end-of-file expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   129   9   MW2 XRPC Tool TU8
Error   15   'MW2_XRPC_Tool_TU8.Form1.mflags' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   21   MW2 XRPC Tool TU8
Error   16   The type or namespace name 'client' could not be found (are you missing a using directive or an assembly reference?)   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   118   17   MW2 XRPC Tool TU8
Error   17   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   33   MW2 XRPC Tool TU8
Error   18   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   43   MW2 XRPC Tool TU8
Error   19   'MW2_XRPC_Tool_TU8.Form1.Jtag' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   21   MW2 XRPC Tool TU8
Error   20   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   52   MW2 XRPC Tool TU8
Error   21   'MW2_XRPC_Tool_TU8.Form1.Jtag' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   21   MW2 XRPC Tool TU8
Error   22   'MW2_XRPC_Tool_TU8.Form1.SV' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   31   MW2 XRPC Tool TU8


Im not the best with c# but i think this could be your problem (not sure try it see what happens) :
private void button1_Click(object sender, EventArgs e)
        {
            Jtag.Connect();
            if (Jtag.activeConnection)
             {
                MessageBox.Show("Connected!");
            }
            else
            {
                MessageBox.Show("Failed");
            }
        }


This error happened after I added
        private void button8_Click(object sender, EventArgs e)
        {
        int client = (int)numericUpDown3.Value;
            if (mflags == 0)
            {
                if (client == -1)
                    for (int i = 0; i < 0x11; i++)
                    {
            Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
        }
        }
            Jtag.WriteInt32(getPlayerState(client)+ 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
            mflags++;
        }
            else if(mflags == 1)
            {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
                    Jtag.Call(SV, -1, 1, "c \"UFO Mode ^2Given!\"");
                }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"UFO Mode ^2Given!\"");
            mflags++;
        }
        else if (mflags == 2)
        {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayertate(i) + 0x3240, 0);
                    Jtag.Call(SV, -1, 1, "c \"Normal Movement ^2Given!\"");
                 }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"Normal Movement ^2Given!\"");
            mflags = 0;
        }
    }
}



What errors you getting with this code so we can help this .
#5. Posted:
MHUTricK
  • Powerhouse
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
Status: Offline
Joined: Oct 30, 201113Year Member
Posts: 414
Reputation Power: 17
ZZ9_x_iHaXoRZz wrote
MHU_Lobbies wrote
RGHJTAGZ wrote
MHU_Lobbies wrote Hello, I am here in need help of another error I have come across.. I'm guessing there is like one or two things I did wrong that made all of this wrong? But I am not sure.
My 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 XRPCLib;
using XDevkit;
using XRPCPlusPlus;

namespace MW2_XRPC_Tool_TU8
{
    public partial class Form1 : Form
    {
        XRPC Jtag = new XRPC();
        public uint SV = 0x82254940;
        public int mflags = 0;
        public Form1()
        {
            InitializeComponent();
        }

        public static uint getPlayerState(int client)
        {
            return (0x82F03600 + (uint)(client * 0x280) + 0x158);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Jtag.Connect();
            if (Jtag.activeConnection)
                MessageBox.Show("Connected!");
            else
                MessageBox.Show("Failed");
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            int client = (int)numericUpDown1.Value;
            Jtag.Call(SV, client, 1, textBox1.Text);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Jtag.WriteFloat(0x8200183C, 999f);
            Jtag.WriteFloat(0x82000858, 999f);
            Jtag.Call(SV, -1, 1, "c \"Super Jump ^On!\"");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Jtag.WriteFloat(0x8200183C, 39f);
            Jtag.Call(SV, -1, 1, "c \"Normal Jump ^2On!\"");
        }

        private void button7_Click(object sender, EventArgs e)
        {
            int client = (int)numericUpDown2.Value;
            if(checkBox1.Checked)
            {
                Jtag.Call(SV, client, 1, "c \"" + textBox2.Text + "\"");
            }
            else
            {
                Jtag.Call(SV, client, 1, "f \"" + textBox2.Text + "\"");
            }
           
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Jtag.WriteByte(0x82104093, 0x1);
            Jtag.Call(SV, 0, 1, "c \"Laser ^2On!\"");
        }

        private void button6_Click(object sender, EventArgs e)
        {
            Jtag.WriteByte(0x82104093, 0x0);
            Jtag.Call(SV, 0, 1, "c \"Laser ^1Off!\"");
        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void button8_Click(object sender, EventArgs e)
        {
        int client = (int)numericUpDown3.Value;
            if (mflags == 0)
            {
                if (client == -1)
                    for (int i = 0; i < 0x11; i++)
                    {
            Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
        }
        }
            Jtag.WriteInt32(getPlayerState(client)+ 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
            mflags++;
        }
            else if(mflags == 1)
            {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
                    Jtag.Call(SV, -1, 1, "c \"UFO Mode ^2Given!\"");
                }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"UFO Mode ^2Given!\"");
            mflags++;
        }
        else if (mflags == 2)
        {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayertate(i) + 0x3240, 0);
                    Jtag.Call(SV, -1, 1, "c \"Normal Movement ^2Given!\"");
                 }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"Normal Movement ^2Given!\"");
            mflags = 0;
        }
    }
}


My errors:
Error   1   Invalid token 'else' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   13   MW2 XRPC Tool TU8
Error   2   Invalid token '==' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   28   MW2 XRPC Tool TU8
Error   3   Invalid token '==' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   118   24   MW2 XRPC Tool TU8
Error   4   Invalid token '0x11' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   37   MW2 XRPC Tool TU8
Error   5   Type expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   37   MW2 XRPC Tool TU8
Error   6   Invalid token '++' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   44   MW2 XRPC Tool TU8
Error   7   Invalid token '(' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   36   MW2 XRPC Tool TU8
Error   8   Method must have a return type   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   37   MW2 XRPC Tool TU8
Error   9   Identifier expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   53   MW2 XRPC Tool TU8
Error   10   ; expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   55   MW2 XRPC Tool TU8
Error   11   Invalid token '(' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   30   MW2 XRPC Tool TU8
Error   12   Invalid token ',' in class, struct, or interface member declaration   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   33   MW2 XRPC Tool TU8
Error   13   A namespace cannot directly contain members such as fields or methods   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   126   13   MW2 XRPC Tool TU8
Error   14   Type or namespace definition, or end-of-file expected   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   129   9   MW2 XRPC Tool TU8
Error   15   'MW2_XRPC_Tool_TU8.Form1.mflags' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   116   21   MW2 XRPC Tool TU8
Error   16   The type or namespace name 'client' could not be found (are you missing a using directive or an assembly reference?)   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   118   17   MW2 XRPC Tool TU8
Error   17   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   33   MW2 XRPC Tool TU8
Error   18   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   120   43   MW2 XRPC Tool TU8
Error   19   'MW2_XRPC_Tool_TU8.Form1.Jtag' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   21   MW2 XRPC Tool TU8
Error   20   'MW2_XRPC_Tool_TU8.Form1.i' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   122   52   MW2 XRPC Tool TU8
Error   21   'MW2_XRPC_Tool_TU8.Form1.Jtag' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   21   MW2 XRPC Tool TU8
Error   22   'MW2_XRPC_Tool_TU8.Form1.SV' is a 'field' but is used like a 'type'   c:\users\furyt_000\documents\visual studio 2013\Projects\MW2 XRPC Tool TU8\MW2 XRPC Tool TU8\Form1.cs   123   31   MW2 XRPC Tool TU8


Im not the best with c# but i think this could be your problem (not sure try it see what happens) :
private void button1_Click(object sender, EventArgs e)
        {
            Jtag.Connect();
            if (Jtag.activeConnection)
             {
                MessageBox.Show("Connected!");
            }
            else
            {
                MessageBox.Show("Failed");
            }
        }


This error happened after I added
        private void button8_Click(object sender, EventArgs e)
        {
        int client = (int)numericUpDown3.Value;
            if (mflags == 0)
            {
                if (client == -1)
                    for (int i = 0; i < 0x11; i++)
                    {
            Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
        }
        }
            Jtag.WriteInt32(getPlayerState(client)+ 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"NoClip ^2Given!\"");
            mflags++;
        }
            else if(mflags == 1)
            {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayerState(i) + 0x3240, 0x1);
                    Jtag.Call(SV, -1, 1, "c \"UFO Mode ^2Given!\"");
                }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"UFO Mode ^2Given!\"");
            mflags++;
        }
        else if (mflags == 2)
        {
            if (client == -1)
            {
                for (int i = 0; i < 0x11; i++)
                {
                    Jtag.WriteInt32(getPlayertate(i) + 0x3240, 0);
                    Jtag.Call(SV, -1, 1, "c \"Normal Movement ^2Given!\"");
                 }
            }
            Jtag.WriteInt32(getPlayerState(client) + 0x3240, 0x1);
            Jtag.Call(SV, client, 1, "c \"Normal Movement ^2Given!\"");
            mflags = 0;
        }
    }
}



What errors you getting with this code so we can help this .


I said them, the second code bit I said at the top
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.