Results 1 to 4 of 4

Thread: Need help with Procedure

  1. #1
    Join Date
    Jun 2007
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help with Procedure

    ok well i got a problem useing findfastrandoms.

    SCAR Code:
    //-----------------------------------------------------------------\\
    {            FindFastRandoms - Finds the randoms fast              ||
    \\-----------------------------------------------------------------//}

    function FindFastRandoms: Boolean; // By WT-Fakawi, Who Else :P
    var
      i: Integer;
    begin
      for I := 1 to 11 do
      begin
        case I of
           1:  if FindDead then
                 Result := True;

           2:  if FindMod then
                 Result := True;

           3:  if FindMime then
                 Result := True;

           4:  if FindMaze then
                 Result := True;

           5:  if FindQuiz then
                 Result := True;

           6:  if FindDemon then
                 Result := True;

           7: begin
                 if NoGameTab then
                 begin
                   Result := True;
                   Players[CurrentPlayer].loc := 'No GameTab';
                   Logout;
                   Exit;
                 end;
               end;

           8: begin
                if InBlack then
                begin
                  Result := True;
                  Players[CurrentPlayer].loc := 'InBlack';
                  Logout;
                  Exit;
                end;
              end;

           9 : if RC then
                 Result := True;

           10 : if FindFight then
                  begin
                    Result := True;
                    RunTo(RunDir, RunFar);
                  end;

           11: if FindTalk then
                 Result := True;
        end;
        Wait(1);
      end;
    end;

    i get an error that says...Line 79: [Error] (15408:7): Unknown identifier 'RunDir' in script

    im useing the newest version of srl and scar. any kind of help i would appreciate.


    EDIT: i found out what the problem was. i copied the function from sum1 script. i guess they must have edited it or sumthing. i got it to work now though.

  2. #2
    Join Date
    Jun 2007
    Location
    New Yawk
    Posts
    943
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Shouldn't you replace RunDir with an actual Direction, like 'N'? or 'E'?
    I guess the holidays are over - no sig for now.

  3. #3
    Join Date
    Jun 2007
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i dunno . thats why im asking

  4. #4
    Join Date
    Jun 2007
    Location
    New Yawk
    Posts
    943
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, do what I told you, and it should work.
    I guess the holidays are over - no sig for now.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Procedure?
    By shadowrec0n in forum OSR Help
    Replies: 3
    Last Post: 02-11-2008, 09:04 PM
  2. Procedure TypeSendRandom & Procedure AutoResponder!
    By Ultra in forum Research & Development Lounge
    Replies: 12
    Last Post: 01-08-2008, 07:04 PM
  3. Help with Procedure
    By Esteban in forum OSR Help
    Replies: 8
    Last Post: 07-06-2007, 03:45 AM
  4. Replies: 8
    Last Post: 05-24-2007, 11:57 PM
  5. Procedure that calls random procedure?
    By Secet in forum OSR Help
    Replies: 2
    Last Post: 03-03-2007, 03:56 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
  •