at the moment I am using Jorndel's Memory Class but it doesn't feature a "WriteFloat"-function. Can somebody help me creating that or tell me how i can convert a float-value to an integer, if that is even possible? (Want to change the Fov)
Thanks in advance
Sorcer
I'm pretty sure Jorndel's class has a WriteFloat method... but anyways... Just use the BitConverter.GetBytes method and you're done
Code:
byte[] buf = BitConverter.GetBytes(Value);
IntPtr Zero = IntPtr.Zero;
WriteProcessMemory(ProcessHandle, (IntPtr) Address, buf, (UInt32) buf.Length, out Zero);