Code:private void Write(int Address, float Value) { byte[] Buffer = BitConverter.GetBytes(Value); IntPtr Zero = IntPtr.Zero; WriteProcessMemory(pHandel, (IntPtr)Address, Buffer, (UInt32)Buffer.Length, out Zero); }Code:public void WriteFloat(int Address, float Value) { Write(Address, Value); }
Also, long != float, problem is address related, you have to change optimize memory class to work with 64 bit process..