Hey guys, I never really used this method, but by using this method I think my projects won't be messy anymore.
So ok, I have this public function:
Code:
Public Function GeneralDims()
Dim dGame As Long
Dim MobDeadState As Long
Dim MobId As Long
Dim cHP As Long
Dim cMP As Long
dGame = ReadDLL("Game.dll")
MobDeadState = "&H" + Hex(dGame + &Hoffset)
MobId = "&H" + Hex(dGame + &Hoffset)
cHP = "&H" + Hex(dGame + &Hoffset)
cMP = "&H" + Hex(dGame + &Hoffset)
Return dGame & MobDeadState & MobId & cHP
End Function
I just screwed around with the return, i'm not that good at creating functions:P
So what I want is, not having to dim and set a value to the var. all over again.
I want to use it like this:
Code:
Private Sub TimerTarget_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TimerTarget.Tick
GeneralDims()
If MobDeadState = 1 Then
'do somthing
end if
End Sub
But now it just errors me that the var is not declared.
Could somebody help me?
Thanks,
Apez.
If want to be credited, say so, you will be credited.