Exclamation[Help]function problem

Posts 16–30 of 30 · Page 2 of 2
lol, I didn't refresh the page so I was like 30 minutes worth of posts behind /

Here is the fixed version:
[php] Private Sub equip_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim address As String = &H1B2C89C
Dim value As Long = mwhack.readmemory(&H1B2C89C)
msgbox(value)
If value < 800300 Or value > 3600 And address = &H1B2C89C Then
If txtequip.text = "Frag Grenade - 4" Then
If address <= 3600 Then
memoryh4x(&H1B2C89C, 3600, 4)
End If
End If
End If
End Sub[/php]

Also, this part doesn't make sense:
[php]If address <= 3600 Then[/php]
How does can an address be less than 3600?

I think you mean this:
[php]If value <= 3600 Then[/php]
yea, thats what i just saw, ty

and with your working code, ill use that as a realy close template.
trying to use IF statments as little as possible on this program...
------------------------------------------------------
ok...this is starting to anoy me...

i tryed to convert that IF set to a case version and it dident work.
then i tryed using that set...no dice..
then i inserted a msgbox to see if it was getting after the function...no dice...

this is what the hole sub looks like.
button click:
Code:
Private Sub equip_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Dim address As String = &H1B2C89C
        Dim value As Long = mwhack.ReadMemory(&H1B2C89C)
        MsgBox(value)
        If value < 800300 Or value > 3600 And address = &H1B2C89C Then
            Dim equiptext As String = txtequip.Text
            Select Case My.Settings.check
                Case "Frag Grenade - 4"
                    If value <= 3600 Then
                        memoryh4x(&H1B2C89C, 3600, 4)
                    End If
                Case "Semtex Grenade - 4"
                    If value <= 3600 Then
                        memoryh4x(&H1B2C89C, 3600, 4)
                    End If
                Case "Throwing Knife - 7"
                    If value <= 13500 Then
                        memoryh4x(&H1B2C89C, 13500, 4)
                    End If
                Case "Tactical Insertion - 11"
                    If value <= 36500 Then
                        memoryh4x(&H1B2C89C, 36500, 4)
                    End If
                Case "Blast Shield - 19"
                    If value <= 126900 Then
                        memoryh4x(&H1B2C89C, 126900, 4)
                    End If
                Case "Claymore - 31"
                    If value <= 382700 Then
                        memoryh4x(&H1B2C89C, 382700, 4)
                    End If
                Case "C4 - 43"
                    If value <= 800300 Then
                        memoryh4x(&H1B2C89C, 800300, 4)
                    End If
            End Select
        End If
    End Sub
Is my.settings.check a string? Does it sure contain something?
its a string that says: Semtex Grenade - 4
Where is the string obtained from? A textbox, a *******..?
atm its just set as that, nothing changing it

its located..well, my project, then settings, then made one called check, and changed it to a string.
then the my.settings.check is the way of using it....
basicly a cross form varible that saves when you close the app, and loads when you open it
(98% chance ya knew that..just checkin)
From experience, I've had a few problems reading process memory externally (i.e Player Pointers in CA), so it's likely a problem you're having reading the appropriate address (try MsgBox(CStr(value)) to see what value is being held, my money is that it's constantly 0, indicating that the memory is being read incorrectly and hence not triggering any events.
yea....posted before...it comes back as 0.
just cant seem to get it to read the right value...

but if the function is only getting back 0, then the case should be selecting the string anyway.
its just not getting passed the funtion...
Well what is the value that is displayed on Cheat Engine?
value at the address is: 2516000
Quote Originally Posted by *****179 View Post
value at the address is: 2516000
and the address? does the address change? Look up on DMA.
(if its a dynamic address - aka, it changes every time) You should just like memory scan like cheat engine, and scan very possible address. It'd be easiest. If blubb's library can't do that, I'll make one that can :P
it doesent change. the write part always works, and its set to the same address, so it should work.

value at the address is: 2516000
address is: &H1B2C89C
(or 01B2C89C for other peoples)

its the XP address, so how im wanting this part of code to work is:
button click
read XP value from preset address
if its lower or greater than rank 4 or rank 41 equivalent value, then
select txtequip's text, then the coresponding switch,
then if value is lower than switch's set XP, write XP address to selected switch's address.


now, the write part works, major problem is the read part
realy sorry to bump...but this is still a problem and i have spent 3 days trying to figure this out...
anybody have any idea why its not working?
Mine can actually read memory pointers also.
Posts 16–30 of 30 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?