Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Trainer not responding???
#1
ok i FINALLY figured out how to freeze my value but NOW im having a worse problem Sad when i click he check-box on my program to freeze it, the entire trainer itself stops responding. the ammo on the game is frozen like i want it to be!, but the trainer stop responding....-_- any help is greatly appreciated heres the code im using

Private Sub CheckBox1_CheckedChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBoxHealth.CheckedChanged
If CheckBoxHealth.Checked = True Then
For i = 1 To 9999 Step 0
memoryh4x(&H176C8B8, 9999, 4)
Next
Else
memoryh4x(&H176C8B8, 1, 4)
End If
Reply

#2
(08-21-2011, 03:51)TheCodKingz10 Wrote: ok i FINALLY figured out how to freeze my value but NOW im having a worse problem Sad when i click he check-box on my program to freeze it, the entire trainer itself stops responding. the ammo on the game is frozen like i want it to be!, but the trainer stop responding....-_- any help is greatly appreciated heres the code im using

Private Sub CheckBox1_CheckedChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBoxHealth.CheckedChanged
If CheckBoxHealth.Checked = True Then
For i = 1 To 9999 Step 0
memoryh4x(&H176C8B8, 9999, 4)
Next
Else
memoryh4x(&H176C8B8, 1, 4)
End If

LoL you created another thread but ok, your trainer is probably not responding because of the fact the loop you are making has no wait time.

Code:
For i = 1 To 9999 Step 0
                memoryh4x(&H176C8B8, 9999, 4)
     [color=#FF0000]Sleep(1000) // this is in miliseconds.[/color]
            Next
        Else
            memoryh4x(&H176C8B8, 1, 4)
        End If

But then you have to declare this in your form:

Code:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

So the "Sleep" command will be available.

I dont know if this works but if i helped you Press the Thanks Button xD

PS: Sleep wont work for what you want because it suspends all activity from program.

Instead of Sleep try this:

First Of All Create a Module(if you dont have one already) and declare this:

Code:
Public Declare Function GetTickCount Lib "kernel32" () As Long

Code:
Public Sub wait(ByVal dblMilliseconds As Double)
    Dim dblStart As Double
    Dim dblEnd As Double
    Dim dblTickCount As Double
    
    dblTickCount = GetTickCount()
    dblStart = GetTickCount()
    dblEnd = GetTickCount + dblMilliseconds
    
    Do
    DoEvents
    dblTickCount = GetTickCount()
    Loop Until dblTickCount > dblEnd Or dblTickCount < dblStart
      
    
End Sub

Then just use "Wait" like "Sleep":

Code:
For i = 1 To 9999 Step 0
                memoryh4x(&H176C8B8, 9999, 4
wait(1000) // this is in miliseconds.
            Next
        Else
            memoryh4x(&H176C8B8, 1, 4)
        End If

Suggestion: Instead Of "For" use "While"

Code:
While 1
                memoryh4x(&H176C8B8, 9999, 4
[color=#FF0000]wait(1000) // this is in miliseconds.[/color]
           While End
        Else
            memoryh4x(&H176C8B8, 1, 4)
        End If


Thanks Barata...
Reply

#3
nevermind my last post, i just fixed that but when i use wait(1000) i get waitis not declared and is inaccesible due to its protection level
Reply

#4
@barata pls use code or cpp tags
@TheCodKingz10 no need to quote everything if you answer on his post.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Black Ops Single Player/Zombie Trainer V3.6 Craig87 52 88,530 07-01-2013, 15:12
Last Post: explosivebanana55
  [Release] LF's BO2 Trainer (Latest Version) LegitFlash 3 4,951 06-11-2013, 18:14
Last Post: surtek
  Black Ops 2 DLC camo trainer surtek 10 10,738 04-19-2013, 23:16
Last Post: Gladio
  Black Ops 2 camo trainer surtek 33 28,365 04-16-2013, 11:07
Last Post: surtek
  Saint Row: The Third - +7 Trainer - Steam v1.0.0.1 - DX10/11 d0h! 5 30,377 03-02-2013, 15:31
Last Post: BunnySkills
  [Release] [DETECTED] Black ops 2 Zombie Trainer dylankrajewski 8 16,137 02-09-2013, 10:07
Last Post: Erik The Born
  Preview BarataConsole Trainer/Mod/Plugin API JariZ 1 3,036 02-05-2013, 23:59
Last Post: barata
  [Release] MW3 +12 Singleplayer Trainer 1.9.453 by Geomatrical Silencemod 15 11,322 01-18-2013, 21:54
Last Post: JariZ
  Black Ops 2 emblem trainer surtek 3 5,717 12-17-2012, 17:23
Last Post: surtek
  Black Ops 2 token trainer surtek 4 5,169 12-16-2012, 04:37
Last Post: Stocker

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.