Hey @lappendance !
Didn't I tell you to use new class ?
SetInt = SetInteger => Integer = 4bytes => can't be used with Float
Hey
I want to set the Value of (for example Jump Hight Address)
to any value so i write:
Mw3.Hack("iw5sp")
Mw3.SetInt(&H1C5E0F4, TextBox1.Text)
Mw3.Hack("iw5sp")
Mw3.SetInt(&H185E0A8, TextBox1.Text)
With a 4Byte it works but with a Float dont!
What can i do??
Hey @lappendance !
Didn't I tell you to use new class ?
SetInt = SetInteger => Integer = 4bytes => can't be used with Float
Last edited by Lovroman; 06-17-2013 at 09:55 AM.
C# ain't my strong point but:
Sorry, didn't sleep in 30 hoursCode:try { int floatAsInt = BitConverter.ToInt32(BitConverter.GetBytes(Float.TryParse(TextBox1.Text))); Mw3.Hack("iw5sp"); Mw3.SetInt(&H1C5E0F4, floatAsInt); } catch (Exception exc) { MessageBox.Show(exc.ToString()); }
Hehe @Kenshin13 "":
New WriteFunction:
WriteFloat:Code:Private Sub Write(Address As Integer, Value As Float) Dim Buffer As Byte() = BitConverter.GetBytes(Value) Dim Zero As IntPtr = IntPtr.Zero WriteProcessMemory(pHandel, New IntPtr(Address), Buffer, UInt32.Parse(Buffer.Length), Zero) End Sub
Plus he wants VB.NET xDCode:Public Sub WriteFloat(Address As Integer, Value As Float) Write(Address, Value) End Sub
Go sleep, C# w/o semicolons ?!
Last edited by Lovroman; 06-17-2013 at 10:18 AM.
Kenshin13 (06-17-2013)
@Lovroman Yea you told me but i write the complete code with the olde Code.....So it will take a while to change in the new class i will do this in the next view days....