Results 1 to 6 of 6

Thread: joining lists

  1. #1
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    joining lists

    i would liek to join to lists togeter, in a random list, so for example in one list i can have names and another a list of jobs.

    how can i have the names matched up with jobs but not repeating the names and jobs?

  2. #2
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Write them out and put them in your main loop

    SCAR Code:
    Begin
      ListOfJobs;
      ListOfNames;
    end.

    ^ Here you go ^

  3. #3
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i want it to randomly join the lists.

    so the top name wont join to the top job, if you get me

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Then make a random case like so:

    SCAR Code:
    Case Random 7 of
    1: ListOfJobs;

    e.t.c

    Hope I Helped

  5. #5
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i have tried that but then you will get a repeat of a name or a job, i just want each instance to appear once.

    so with 10 names and 10 jobs, i will only get 10 end results when joining them up and each name and job only appears onces

  6. #6
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    With that do

    SCAR Code:
    WriteLn('');

    ^ What that does is it makes a space in the debug box ^

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Queues and Linked Lists
    By Light in forum OSR Help
    Replies: 4
    Last Post: 09-09-2007, 05:47 PM
  2. joining clan
    By YDOuCARE in forum Bot Information and Spottings
    Replies: 4
    Last Post: 08-09-2007, 02: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
  •