Results 1 to 3 of 3

Thread: GSC GetArrayKeys

  1. #1
    Private First Class php's Avatar
    Join Date
    Nov 2012
    Posts
    142
    Thanks
    28
    Thanked 116 Times in 59 Posts

    GSC GetArrayKeys

    Requested by IzNoGoD

    left CoD2 1.0 out as it's easy to get the offsets if you compare them with the other cod2 patches.

    (If you're gonna rip code, please leave a thanks/credit)

    https://gist.github.com/riicchhaarrd...9ae3b075bd4234

  2. The Following 4 Users Say Thank You to php For This Useful Post:

    IzNoGoD (2nd May 2015),kung foo man (27th April 2015),Mitch (27th April 2015),serthy (27th April 2015)

  3. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    What does it do exactly?

  4. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    HEY YOU'RE AWESOME

    Should work like this:
    PHP Code:
    arr = [];
    arr["a"] = 1;
    arr["b"] = "two";
    arr["c"] = 3.333;

    keys getArrayKeys(arr);
    // keys[0] will be "a"
    // keys[1] will be "b"
    // keys[2] will be "c" 
    It makes some scripting much easier, without some hackery to save the keys of an array in an extra array.
    timescale 0.01

  5. The Following 2 Users Say Thank You to kung foo man For This Useful Post:

    Mitch (27th April 2015),Ni3ls (27th April 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •