Results 1 to 4 of 4

Thread: Color codes... Help if can please =)

  1. #1
    Join Date
    Aug 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Color codes... Help if can please =)

    Hi guys,

    I am using someone elses script, but my colours are higher than the code, so there is multiple colours for one thing...

    Note: This isnt all of them

    if (color = 9788951 or 9657108 or 9459728 or 9393424 or 9393424 or 9788951 or 9657114 or 9986848 or 9459728 or 9591312 or 9788951 or 9591312 or 9788692 or 9590027) then ...

    Is there a way to make this a range?

    ie range of 9400000 to 990000

    Thanks

  2. #2
    Join Date
    Aug 2008
    Location
    Serdia, Isla Prima
    Posts
    68
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    If I'm not mistaken an array can be used for this where you just loop through the array untill the color specified is found or not.

    But don't just take my word for it. I still need to get arrays working 100% of the time.

  3. #3
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Umm, do something like:
    SCAR Code:
    if((colour>9400000) and (colour<9900000)) then
        blah;

    or
    SCAR Code:
    if(InRange(colour, 9400000, 9900000)) then
      blah;
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  4. #4
    Join Date
    Aug 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Works great, thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ALT Codes =Þ
    By warrockownz in forum Semi Stupid Pictures
    Replies: 13
    Last Post: 08-14-2007, 07:33 AM
  2. key byte codes
    By Mr. Doctor in forum OSR Help
    Replies: 8
    Last Post: 02-19-2007, 04:26 AM
  3. Key Codes.
    By Hey321 in forum OSR Help
    Replies: 9
    Last Post: 12-09-2006, 04:48 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
  •