Results 1 to 3 of 3

Thread: Colon expected.

  1. #1
    Join Date
    Aug 2007
    Location
    Georgia, U.S.
    Posts
    890
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Colon expected.

    this is the procedure that i have the problem in:
    Line 90: [Error] (14941:11): colon (':') expected in script

    SCAR Code:
    procedure TehRespond;
    begin
      if InChat('hey') or InChat('hi') or InChat('whats up?') then
      begin
        case Random(10) of
          0 : TypeSend('hi');
          1 : TypeSend('hello');
          2 : TypeSend('hey');
          3 : TypeSend('sup');
          4 : TypeSend('hola');
          5 : TypeSend('yo');
          6 : TypeSend('dont feel like talking now, sorry');
          7 : TypeSend('sup');
          8 : TypeSend('not now');
          9 : TypeSend('please leave me alone');
          Responded := Responded + 1; //this line
        end;
      end;
      if InChat('woodcutting lvl') or InChat('wc lev') or InChat('wc lv') then
      begin
        case Random(8) of
          0 : TypeSend(IntToStr(TheLevel);
          1 : TypeSend(IntToStr(TheLevel + (', you?');
          2 : TypeSend(IntToStr(TheLevel + (' lol');
          3 : TypeSend('currently ') +IntToStr(TheLevel);
          4 : TypeSend('right now ' +IntToStr(TheLevel));
          5 : TypeSend('soon ' +IntToStr(TheLevel));
          6 : TypeSend('almost ' +IntToStr(TheLevel));
          7 : TypeSend(IntToStr(TheLevel));
          Responded := Responded + 1;
        end;
      end;
    end;

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

    Default

    You wrote the counter inside the case of.

  3. #3
    Join Date
    Aug 2007
    Location
    Georgia, U.S.
    Posts
    890
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh, im always making stupid mistakes like these. thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Colon expected?
    By impiwimpi in forum OSR Help
    Replies: 9
    Last Post: 01-21-2009, 05:06 PM
  2. Colon expected...but where?!
    By Rich in forum OSR Help
    Replies: 3
    Last Post: 05-17-2008, 02:28 PM
  3. Colon expected...
    By supersayian2224 in forum OSR Help
    Replies: 7
    Last Post: 07-09-2007, 09:37 PM
  4. colon expected ??
    By Ipewnjoo in forum OSR Help
    Replies: 5
    Last Post: 07-01-2007, 09:59 PM
  5. Colon Expected
    By Hey321 in forum OSR Help
    Replies: 3
    Last Post: 01-28-2007, 01:00 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
  •