Results 1 to 6 of 6

Thread: Another Problem

  1. #1
    Join Date
    Dec 2006
    Posts
    173
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Another Problem

    Its me again....When I asked for help with my random walking some people gave me a example of how to make the simple procedure. So I went ahead and made a procedure using their suggestions. But whenever I try to run the script I keep getting this error:

    Line 929: [Error] (13381:1): Syntax error in script

    here is the procedure:

    SCAR Code:
    procedure WalkingToTrees;
    begin
      If(Not(LoggedIn)) then Exit;
      case for Random(2) to
       begin
        0: procedure WalkToOakOne;
        1: procedure WalkToTreesTwo;
      end;
    end;

    If anyone could help, it would be apprieciated.
    Starting to merchant, if you know of any good clans, PM me please.

  2. #2
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure WalkingToTrees;
    begin
      If(Not(LoggedIn)) then Exit;
      case Random(2) of
       begin
        0: procedure WalkToOakOne;
        1: procedure WalkToTreesTwo;
      end;
    end;

    There ya go!

  3. #3
    Join Date
    Dec 2006
    Posts
    173
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for replying but I still keep getting the error. ( Even with your fix )
    Starting to merchant, if you know of any good clans, PM me please.

  4. #4
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol, silly me... You cant have procedure in there. Now its fixed!
    SCAR Code:
    procedure WalkingToTrees;
    begin
      If(Not(LoggedIn)) then Exit;
      case Random(2) of
       begin
        0: WalkToOakOne;
        1: WalkToTreesTwo;
      end;
    end;

  5. #5
    Join Date
    Dec 2006
    Posts
    173
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you so much Chris! Btw, I never knew you could not have a procedure in a case! Lol
    Starting to merchant, if you know of any good clans, PM me please.

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

    Default

    Quote Originally Posted by Macho Man67 View Post
    Thank you so much Chris! Btw, I never knew you could not have a procedure in a case! Lol
    you can.. you just cant put the word procedure

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. problem...
    By Blumblebee in forum OSR Help
    Replies: 4
    Last Post: 12-28-2008, 07:22 AM
  2. help big problem
    By goblanca in forum OSR Help
    Replies: 3
    Last Post: 05-19-2007, 10:41 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
  •