Results 1 to 5 of 5

Thread: Assignment expected or somthing

  1. #1
    Join Date
    Feb 2007
    Posts
    849
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Assignment expected or somthing

    okay, this is my script. it mines and will have antirandoms

    [H]Line 88: [Error] (17749:5): Assignment expected in script [/H]



    SCAR Code:
    program Miner;
    {.include SRL/SRL.scar}

    const
    RockColour= 2503250;



    var
    Time:  Integer;
    Rocks:  Integer;



    Procedure Players1;
    Begin
          HowManyPlayers:= 1;
         NumberOfPlayers( HowManyPlayers );
         CurrentPlayer := 0;
     Players[0].name := ('');
     Players[0].pass := ('');
     Players[0].nick := ('');
    End;






    procedure Proggy;
    begin
    ClearDebug
    Writeln('[]========================================[]');
    Writeln('---------------->Our Proggy<----------------');
    Writeln(' did ' + IntToStr(Time) + ' seconds of hard labour' + ' ');
    Writeln('[]========================================[]');
    Writeln(' did ' + IntToStr(Rocks) + ' rocks' + ' ');
    Writeln('[]========================================[]');
    end;




    Function FindRock: Boolean;
    begin
      if(FindColorTolerance(x, y, RockColour, 0, 0, 600, 600, 2))then
      begin
        Result := True;
        begin
          Repeat
        if (FindRock) then
        begin
          Result := True;
          Mouse(x, y, 2, 2, true);
          Wait(500+random(1000));
          Exit;
        end;
      until (False)
    end;
      end else
        Writeln('Didnt find rock');
        wait(5000+random(1000));
    end;


    Procedure Time1;
    begin
    wait(1000)
    Time:=Time+1;
    wait(1000)
    end;

    Procedure Dropores;
    begin
      if(InvFull)then
      DropTo(2,28);
      Rocks:=Rocks+27;
    end;



    begin
    SetupSRL;
    Players1;
    repeat
    Cleardebug;
    Proggy;
    Time;
    Dropores;

    until(false)

    end.
    ________________________________________
    14:19 < cycrosism> I wonder what she would have done without it
    14:19 < cycrosism> without me*
    Cycrosism is now an it.
    Quote Originally Posted by Dervish View Post
    /Facedesk.

  2. #2
    Join Date
    Mar 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    point out which line is line 88 plz

  3. #3
    Join Date
    Feb 2007
    Posts
    849
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    its the 1 that says

    Time;

    right near the bottom
    ________________________________________
    14:19 < cycrosism> I wonder what she would have done without it
    14:19 < cycrosism> without me*
    Cycrosism is now an it.
    Quote Originally Posted by Dervish View Post
    /Facedesk.

  4. #4
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Change your "Time" to "Time1", thats your procedurs name, right?

  5. #5
    Join Date
    Feb 2007
    Posts
    849
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i feel so stupid right no

    thanx
    ________________________________________
    14:19 < cycrosism> I wonder what she would have done without it
    14:19 < cycrosism> without me*
    Cycrosism is now an it.
    Quote Originally Posted by Dervish View Post
    /Facedesk.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Assignment expected in script
    By Rich in forum OSR Help
    Replies: 5
    Last Post: 07-26-2008, 07:05 PM
  2. Assignment expected in script
    By Rich in forum OSR Help
    Replies: 2
    Last Post: 07-26-2008, 05:03 PM
  3. Assignment expected in script
    By [S]paz in forum OSR Help
    Replies: 2
    Last Post: 01-06-2008, 12:51 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
  •