我为游戏编写了一个作弊代码,但我想创建一个菜单,我就是这样做的。如果选中复选框,请执行 while (checkbox.checked)。所以我开始测试我的程序,由于某些原因,当我选中复选框时我的程序崩溃了。有谁能够帮助我?
namespace Hack
{
public partial class Form1 : Form
{
public Form1()
{
int PBase = 0x00509B74;
int Health = 0xf8;
int mgammo = 0x150;
VAMemory vam = new VAMemory("ac_client");
int localplayer = vam.ReadInt32((IntPtr)PBase);
{
}
InitializeComponent();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
while (checkBox1.Checked)
{
int PBase = 0x00509B74;
int Health = 0xf8;
VAMemory vam = new VAMemory("ac_client");
int localplayer = vam.ReadInt32((IntPtr)PBase);
{
int address = localplayer + Health;
vam.WriteInt32((IntPtr)address, 1337);
}
Thread.Sleep(200);
}
}
}
}
伊兹米歇尔