Results 1 to 4 of 4
  1. #1
    CHECK2PASS's Avatar
    Join Date
    Mar 2007
    Posts
    10
    Reputation
    10
    Thanks
    0

    wats wrong with this weapon code

    Private Sub Timer9_Timer()
    If GetAsyncKeyState(vbKeyControl) <> 0 And GetAsyncKeyState(vbKeyB) <> 0 Then
    Dim weapons As Long
    Dim weapons1 As Long
    Dim weapons2 As Single
    Call ReadALong("Warrock", &H896E28, weapons)
    weapons1 = weapons + &H4C
    weapons2 = Text4.Text
    Call WriteAFloat("Warrock", weapons1, weapons2)
    End If
    End Sub
    ------------------------------------
    added this is the command button
    Timer9.Interval = 1
    -------------------------------------
    it makes warrock pause and then exits the whole game and i need to reopen it to play again
    Last edited by CHECK2PASS; 07-03-2007 at 04:07 AM. Reason: forgot to add

  2. #2
    Stranger00's Avatar
    Join Date
    May 2007
    Posts
    208
    Reputation
    17
    Thanks
    0
    your trying to write a single for the weapon value instead of a long. Single is a float basically. Dim the weapon value as a long and use writelong

  3. #3
    CHECK2PASS's Avatar
    Join Date
    Mar 2007
    Posts
    10
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Stranger00 View Post
    your trying to write a single for the weapon value instead of a long. Single is a float basically. Dim the weapon value as a long and use writelong
    Private Sub Timer9_Timer()
    If GetAsyncKeyState(vbKeyControl) <> 0 And GetAsyncKeyState(vbKeyB) <> 0 Then
    Dim weapons As Long
    Dim weapons1 As Long
    Dim weapons2 As Long
    Call ReadALong("Warrock", &H896E28, weapons)
    weapons1 = weapons + &H4C
    weapons2 = Text4.Text
    Call WriteALong("Warrock", weapons1, weapons2)
    End If
    End Sub


    so like that ^

  4. #4
    Stranger00's Avatar
    Join Date
    May 2007
    Posts
    208
    Reputation
    17
    Thanks
    0
    Yeah that should work. You did put the module that needed for that into your project right? w/o that none of the functions (like WriteALong or ReadALong) will work.

    Edit: Make sure your timer is enabled. I think it is by default though.

Similar Threads

  1. Wats wrong with this?
    By scorpoistak in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 15
    Last Post: 07-11-2010, 04:16 AM
  2. What is wrong with this code?
    By t7ancients in forum C++/C Programming
    Replies: 10
    Last Post: 10-19-2009, 01:58 PM
  3. wats wrong with the Super Jump code
    By nub_g0t_high in forum WarRock - International Hacks
    Replies: 6
    Last Post: 11-01-2007, 06:22 PM
  4. wats wrong with this?
    By nub_g0t_high in forum Visual Basic Programming
    Replies: 3
    Last Post: 10-31-2007, 05:52 PM
  5. Whats wrong with this code ?
    By bohnenbong in forum WarRock - International Hacks
    Replies: 7
    Last Post: 10-26-2007, 06:57 AM