Results 1 to 4 of 4

Thread: Array help

  1. #1
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Array help

    I'm calling an array from declare players, but I don't know how to set it's values.
    Like a normal array, you would do
    SCAR Code:
    AArray[0] := X;
    AArray[1] := Y;
    It looks funky because,
    SCAR Code:
    Players[CurrentPlayer].Arrays[0] := ? //WTF?

    Any ideas?

  2. #2
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Players.Arrays are used to store arrays. So you'd use them like this:

    SCAR Code:
    var
    AArray: Array of Whatever;

    ...

    Players[CurrentPlayer].Arrays[0] := AArray;

  3. #3
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Figured that. Thanks senrath.

  4. #4
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Players[CurrentPlayer].Arrays[0] := [X, Y];

    This what you mean?
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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