Results 1 to 4 of 4

Thread: colon (':') expected in script..

  1. #1
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default colon (':') expected in script..

    im getting the error: colon (':') expected in script... its onthe line that says this line.

    i have a feeling its something simple too...

    SCAR Code:
    5: begin
            case random(3) of
             0: CompWay:= 'N';
             1: CompWay:= 'E';
             2: CompWay:= 'S';
             3: CompWay:= 'W';
            MakeCompass('N');            //this line
            wait(10 + random(5));
            MakeCompass(CompWay);
            wait(10 + random(5));
            MakeCompass('N');
          end;

  2. #2
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    SCAR Code:
    5: begin
            case random(3) of
             0: CompWay:= 'N';
             1: CompWay:= 'E';
             2: CompWay:= 'S';
             3: CompWay:= 'W';
            end;
            MakeCompass('N');            //this line
            wait(10 + random(5));
            MakeCompass(CompWay);
            wait(10 + random(5));
            MakeCompass('N');
          end;

    Case statements are link begins and require an end at the end of them. Try that.
    STOP PM'ING ME

  3. #3
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ya that worked.. i know it was something simple..

    thanks

  4. #4
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    LOL no problem
    Thats why we're here
    STOP PM'ING ME

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.
    By skilld u in forum OSR Help
    Replies: 2
    Last Post: 02-24-2008, 11:54 PM
  3. colon expected in script
    By zenma in forum OSR Help
    Replies: 7
    Last Post: 08-13-2007, 06:50 PM
  4. Colon Expected
    By Hey321 in forum OSR Help
    Replies: 3
    Last Post: 01-28-2007, 01:00 PM
  5. semi colon expected in script -.-
    By oliver1205 in forum OSR Help
    Replies: 1
    Last Post: 01-07-2007, 02:18 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
  •