Results 1 to 3 of 3

Thread: What am I doing wrong?

  1. #1
    Join Date
    Aug 2007
    Location
    Trapped in the drive-thru
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default What am I doing wrong?

    I'm trying to make an auto-talking script. I guess. It just isn't working I keep getting errors. this is what I have.

    --------------------------------------------------------------------------


    program Spam;



    procedure Spam;
    begin;
    case random (9) of
    0: type('Random text' + char (13));
    1: type('Random text' + char (13));
    2: type('Random text' + char (13));
    3: type('Random text' + char (13));
    4: type('Random text' + char (13));
    5: type('Random text' + char (13));
    6: type('Random text' + char (13));
    7: type('Random text' + char (13));
    8: type('Random text' + char (13));
    end;
    end;

    begin;
    repeat;
    SpamSpam;
    wait(2000);
    Until(false);
    end;

    end.
    Come to the Dark Side. Maha!

  2. #2
    Join Date
    Aug 2007
    Location
    England
    Posts
    734
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What errors are you getting?


    Try this
    SCAR Code:
    program Spammer;
    {.include srl/srl.scar}
       
    procedure Spam;
    begin;
      case random (9) of
        0: TypeSend('Random text' + char (13))
        1: TypeSend('Random text' + char (13));
        2: TypeSend('Random text' + char (13));
        3: TypeSend('Random text' + char (13));
        4: TypeSend('Random text' + char (13));
        5: TypeSend('Random text' + char (13));
        6: TypeSend('Random text' + char (13));
        7: TypeSend('Random text' + char (13));
        8: TypeSend('Random text' + char (13));
      end;
    end;

    begin;
      repeat;
        Spam;
        wait(2000);
      Until(false);
    end.
    The truth finally came out...


  3. #3
    Join Date
    May 2006
    Location
    GMU
    Posts
    1,101
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You have

    begin;
    repeat;
    SpamSpam;
    wait(2000);
    Until(false);
    end;


    It should only say Spam once, so it's Spam;
    Hey lady, I need a yank! Ha ha, dislocation.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. what am i doing wrong ?:P
    By sjlou in forum OSR Help
    Replies: 2
    Last Post: 10-01-2007, 01:52 PM
  2. What am i doing wrong?
    By One Leeter in forum OSR Help
    Replies: 7
    Last Post: 06-15-2007, 10:33 PM
  3. Replies: 8
    Last Post: 03-23-2007, 04:20 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
  •