Results 1 to 2 of 2
  1. #1
    x2Sorcer's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    55
    Reputation
    10
    Thanks
    334
    My Mood
    Bored

    Writing a float?

    Hi,

    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

  2. #2
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,310
    My Mood
    Angelic
    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);


    CoD Minion from 09/19/2012 to 01/10/2013

Similar Threads

  1. Writing floats...
    By gteuk in forum Call of Duty Modern Warfare 3 Coding, Programming & Source Code
    Replies: 21
    Last Post: 10-09-2012, 06:57 PM
  2. [Help] Reading and Writing Float
    By hack_tr in forum Visual Basic Programming
    Replies: 2
    Last Post: 08-11-2011, 05:01 AM
  3. [Help] float value to write???
    By hack_tr in forum Visual Basic Programming
    Replies: 2
    Last Post: 08-07-2011, 06:25 AM
  4. Actually writing hacks.
    By shercipher in forum Programming
    Replies: 22
    Last Post: 03-20-2006, 05:31 AM
  5. teach program writing or creating to me?
    By Kirashima in forum Programming
    Replies: 3
    Last Post: 02-22-2006, 07:51 AM