Captainzedog
New member
- Joined
- Oct 24, 2020
- Messages
- 1
- Programming Experience
- Beginner
C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace DEMO
{
class Program
{
public static int Base = 0x004E4DBC;
public static int Health = 0xF4;
static void Main(string[] args)
{
VAMemory vam = new VAMemory("ac_client");
int LocalPlayer = vam.ReadInt32((IntPtr) Base);
while (true)
{
int address = LocalPlayer + Health;
vam.WriteInt32((IntPtr)address, 9999);
Thread.Sleep(100);
}
}
}
}
Whenever I run this code, I get the error shown in the attached file. I don't know why I'm getting it. I'm on .NET 3.1 and Visual Studio 2019