Results 1 to 2 of 2

Thread: problem with dropexcept function

  1. #1
    Join Date
    Sep 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default problem with dropexcept function

    The Dropexcept function in the manual needs an argument. I dont know how to pass an array of an integer to a function. How do I do that?

  2. #2
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    To write an array of Integer into one line, just use this:

    [Number, AnotherNumber, AnotherNumber]

    Remember, do not set any array length, else the procedure will crash.

    EXAMPLE:
    If I want to drop all items except for slot 1, 14 and 16 i do this:
    DropExcept([1,14,16])

    -Knives

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 06-11-2008, 07:28 AM
  2. function problem
    By Richard in forum OSR Help
    Replies: 7
    Last Post: 02-01-2008, 05:53 PM
  3. Inchat Function Problem
    By Granti in forum OSR Help
    Replies: 21
    Last Post: 06-29-2007, 04:01 AM
  4. Function problem
    By NinjaTerrorist in forum OSR Help
    Replies: 4
    Last Post: 02-16-2007, 11:15 PM

Posting Permissions

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