Results 1 to 6 of 6

Thread: Some Questions...

  1. #1
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Some Questions...

    I have seen scripts with some things i dont understand what they mean.

    SCAR Code:
    Continue; // ???
    mod // what mean
    div // ??

    I dont know what they do.


  2. #2
    Join Date
    Mar 2007
    Location
    Ohio
    Posts
    138
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    im not exactly sure but i think
    mod, and div are like dividing. I've only seen them around RGB stuff
    and Continue is used in loops but im not sure how...

  3. #3
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    If FindColor(blablablablabl) then Continue;
    If FindColor(blablablbalbalba) then Continue;
    Writeln('Found both colors.');

    That is how continue is used.

    I am pretty sure div is dividing but when I tried it in SCAR it dosent have an integer variable...And mod i have no idea. Probably + 1 but inc does that...Someone else know? Thanks,

    ~Kyle~

  4. #4
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    mod give the remainder left from the division. remember long divison back in like grade 4 or whatever its like that kind of but only give the remainder. 16 mod 2 = 0 but 16 mod 3 = 1 (3 * 5 = 15 so there is one left over)

  5. #5
    Join Date
    Dec 2006
    Location
    .̿̂̔͋͗̎̆ͥ̍̒ͤ͂̾̌̀̅
    Posts
    3,012
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Mod = Remainder from division.
    Div = Dividing some number with another one.

  6. #6
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thaks now i understand


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Few questions.
    By Dervish in forum OSR Help
    Replies: 6
    Last Post: 03-09-2009, 08:43 PM
  2. A few questions
    By RSMacroLegend in forum OSR Help
    Replies: 6
    Last Post: 11-29-2007, 03:23 AM
  3. several questions
    By lnknprkn in forum RuneScape News and General
    Replies: 0
    Last Post: 11-14-2007, 02:37 AM

Posting Permissions

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