Results 1 to 2 of 2

Thread: Question about setarray

  1. #1
    Big Cheese Captain
    Join Date
    Jun 2013
    Posts
    1,029

    Question about setarray

    Hiya,

    I've been wondering this for a while. Would this work in GS2? Or is it actually GS1?

    PHP Code:
    function onCreated () {
      
    setarray array,100//gives name of array and how many variables in the array

    Or would I actually have to write out each variable of the array like:

    PHP Code:
    function onCreated () {
      
    this.array = {
      
    whatever;
      
    l33t codr;
    }

    iEra Developer / SFX Admin

    Need help? Contact me:
    Email: [email protected]

  2. #2
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    Don't do setarray, do this.array = { element1, "element2", 332.3 }; and soon...
    -Johnaudi

Posting Permissions

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