Results 1 to 5 of 5

Thread: Semicolon Expected

  1. #1
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default Semicolon Expected

    *sigh*

    Semicolon Expected Error. Am i doing something wrong?
    SCAR Code:
    case P of
      1: begin
          Mouse(Aggiex,Aggiey,2,2,false);
          chooseoption('Open');
         end
      0: begin
          Mouse(Aggiex,Aggiey,4,4,true);
         end

    There is a

    SCAR Code:
    p := random(2)

    and i checked, that does produce 0 and 1s

    So, what am I doing wrong in the Case?

    BTW, is using Runaway as a walking tool dangerous?
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  2. #2
    Join Date
    Mar 2008
    Location
    Indiana
    Posts
    192
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try putting semi-colons after the "end" and after "p := random(2)"

    SCAR Code:
    case P of
      1: begin
          Mouse(Aggiex,Aggiey,2,2,false);
          chooseoption('Open');
         end // Semi-Colon here
      0: begin
          Mouse(Aggiex,Aggiey,4,4,true);
         end //Semi-Colon here

    SCAR Code:
    p := random(2) //Semi-Colon here

    Hope this helps!

  3. #3
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    also you should get into the habit of putting semicolons after the end;

    could you describe how you are using runaway in your script?
    METAL HEAD FOR LIFE!!!

  4. #4
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I am using runaway to run north. Using state 2, where it just runs and waits for a couple of seconds. My only fear is that it clicks the same place on the minimap, and that the mouse moves a bit too fast to the minimap.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  5. #5
    Join Date
    Mar 2008
    Location
    Indiana
    Posts
    192
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    For the mouse clicking on the same spot of mini-map i can help.

    Using the random function:
    SCAR Code:
    random(10); //Picks a random number from 0 to 9

    You can easily use:
    SCAR Code:
    A1 := A1 + (random(10) + 1);
    Which A1 would equal itself plus random number for 1 to 10

    Here is a sample program:
    SCAR Code:
    program New;

    var
    A1 : integer;
    B1 : string;
    begin
    A1 := 10;
    A1 := A1 + (random(10) + 1);
    B1 := inttostr(A1);
    writeln(B1);
    end.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Semicolon expected?
    By TViYH in forum OSR Help
    Replies: 16
    Last Post: 08-31-2008, 05:22 PM
  2. Semicolon expected in script (?)
    By Fabis in forum OSR Help
    Replies: 2
    Last Post: 03-27-2008, 05:14 PM
  3. Semicolon expected?
    By Johura in forum OSR Help
    Replies: 8
    Last Post: 04-17-2007, 06:02 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
  •