Solved Virtua Cop Trainer Help

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Google

Newbie
Full Member
Jun 15, 2012
5
252
0
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:
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
}
 

konsowa

Coder
Full Member
Nobleman
May 24, 2012
178
753
2
Basically what that means is that it was unable to find the process, in other words there is no process in myProcess[0]
 

Google

Newbie
Full Member
Jun 15, 2012
5
252
0
yeah here it is

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
}
 

BlackPitchPL

Coder
Full Member
Nobleman
May 24, 2012
166
783
1
First of all you need declare all function and define process and 1 000 000 other things to do. What You show us is just C&P some example of code that operate on memory of process you select but there is so many thing to do that haven't been done.
 

boogie

Newbie
Full Member
May 24, 2012
20
274
0
You should stick to learning programming language itself before c&p and qqing about it not working...
 

elco

Newbie
Jun 30, 2012
2
282
0
i have a problem i am trying to use the MainModule.BaseAddress to get the base address but it does not work out so wel..
a littel hint here.
if (unlimHealth)
{
mymem.ReadProcess = mypros[0];
mymem.Open();
int getadrr = mypros[0].MainModule.BaseAddress.ToInt32() + 0xCF1AC;
var gamepionter = Convert.ToInt32(HexToDec(getadrr)); * ug here.
int[] gameoffset = Healthoffset;
int bytewrite;
byte[] valuetowrite = BitConverter.GetBytes(Healthadd);
string writtenadres = mymem.PointerWrite((IntPtr) gamepionter, valuetowrite, gameoffset,out bytewrite);
mymem.CloseHandle();
}

"VCop2.exe"+000CF1AC

offset 0x28

are what i get from cheat engine.
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods