I have problem with gun code!
Here is my gun code:
Code:
Dim gun As Long
Dim gun1 As Long
Dim gun2 As Single
Call ReadALong("WarRock", &H896E28, gun)
gun1 = gun + &H4C
gun2 = Text2.Text
Call WriteALong("WarRock", gun1, gun2)
I don't know what is wrong but VB6 says "ByRef argument type mismatch"??
Why Nobody Help Me??
Originally Posted by jokuvaan11
I have problem with gun code!
Here is my gun code:
Code:
Dim gun As Long
Dim gun1 As Long
Dim gun2 As Single
Call ReadALong("WarRock", &H896E28, gun)
gun1 = gun + &H4C
gun2 = Text2.Text
Call WriteALong("WarRock", gun1, gun2)
I don't know what is wrong but VB6 says "ByRef argument type mismatch"??
you copyd that code from someone else right...., next time copy it right lol....
I didn't I writed it myself!!
(all codes can look same cuz here is not so many ways to finish)
Dim gun as long,thats what your missing,and yes that is vb6 codeing,ok next change the
Dim gun2 As single
to
dim gun2 as long
then change the text2.text to just text2
Originally Posted by cjg333
Dim gun as long,thats what your missing,and yes that is vb6 codeing,ok next change the
Dim gun2 As single
to
dim gun2 as long
then change the text2.text to just text2
Dim gun As Long is there!!!
EDIT: NOW IT WORKS I CHANGED SINGLE TO LONG.
Thank You cjg