Signup Now
Results 1 to 5 of 5

Thread: Documentation

  1. #1
    Free User Sajean's Avatar
    Join Date
    Feb 2014
    Posts
    386
    Reputation
    26
    Rep Power
    21

    Documentation

    Helo have wrong code in documentation.

    local firstBp = getcontainer(0)
    while firstBp.hashigher do
    higherwindows('0')
    end


    higherwindows() have an while incorporate, if you put an while when you need to only higher one window then will higer all windows.

    local firstBp = getcontainer(0)
    if firstBp.hashigher then
    higherwindows('0')
    end

  2. #2
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    There's nothing wrong.
    As described below the code, this example shows the highest window, not the higher.

  3. #3
    Free User Sajean's Avatar
    Join Date
    Feb 2014
    Posts
    386
    Reputation
    26
    Rep Power
    21
    Quote Originally Posted by Raphael View Post
    There's nothing wrong.
    As described below the code, this example shows the highest window, not the higher.

    Try this, and you will see if work.

    local firstBp = getcontainer(0)
    while firstBp.hashigher do
    higherwindows('0',true)
    end

  4. #4
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by Sajean View Post
    Try this, and you will see if work.

    local firstBp = getcontainer(0)
    while firstBp.hashigher do
    higherwindows('0',true)
    end
    I did, it does exactly what it is supposed to: go back to the first (highest) backpack.

  5. #5
    Free User Sajean's Avatar
    Join Date
    Feb 2014
    Posts
    386
    Reputation
    26
    Rep Power
    21
    Oh yes, i got it.

    Sorry.

 

 

Posting Permissions

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