everytime i try to run the program i get an error in the myMemory it would say: IndexOutOfRangeException was unhandled
heres a picture if you dont know what im talking about
Picture:
Code:
heres a picture if you dont know what im talking about
Picture:

Code:
private void UpdateCheatsTimer_Tick(object sender, EventArgs e)
{
if (IsGameAvailable)
{
#region Unlimited ammo
if (UnlimitedAmmo)
{
myMemory.ReadProcess = myProcess[0];
myMemory.Open();
int pointerAddress = HextoDec(AmmoPointer);
int[] pointerOffset = AmmoOffset;
int bytesWritten;
byte[] valueTowrite = BitConverter.GetBytes(AmmoToFill);
string writtenAddress = myMemory.PointerWrite((IntPtr)pointerAddress, valueTowrite, pointerOffset, out bytesWritten);
myMemory.CloseHandle();
}
#endregion
}