Results 1 to 13 of 13

Thread: why does is say semicolin expected.....

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

    Default why does is say semicolin expected.....

    at the end of a script, i put end.
    then when I ran it, it said semicolin expected; smack dab in the middle of "end."
    I checked if i missed any semicolins, but i got all of them....
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

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

    Default

    if it helps; heres the general area of where the code is having the area:
    SCAR Code:
    begin                    ///////////////////////////////////
    repeat                   //////{  Rinse, Lather, Repeat. }//
    buyingstatement;         ///////////////////////////////////
    until(FindColor(Fx, Fy, 8388736, 21, 416, 29, 425));  //until the trade color is found in the last chat line.
    end;                   ////////////////////////////////////

    end.
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

  3. #3
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Hmmm... Perhaps a simicolon is expected?

    Lol, Jk. Post the whole script.

    Oh, and there's an "Edit" button for a reason.

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

    Default

    really? the edit button is there for....for....a reason? i always thought it was decoration XD


    Anyway, id rather not share my ever so fabulos script with the world but:
    SCAR Code:
    program MerchantMaster;
    {.Include SRL/SRL.scar}
    {.include srl\srl\extended\xtext.scar}
    {.include srl/srl/misc/amount.scar}

    const      //fill these out, or it won't work!!!!!
    howmany = 10; //how many of the item you want.
    whatyouwannabuy='lobs'; //what IS the item you want?
    eaprice=200; //Just wondering, how much would you want to buy each?
    Var
    Message1:String; //sets up the buying message


       {------------------------------------------------------------------------------------------}

      procedure BuyTrade;  //This starts the procedure of a Buying Trade
      begin
      MoveMouse(470,292);
      Wait(10000);
      if Option2('lobster')then //Type in the object you want to buy in the ''
    end;
      {------------------------------------------------------------------------------------------}

     procedure StartTrade;     //This moves the mouse to start the trade
    var cx, cy, Fx, Fy : integer;
    begin
    If (FindColor(Fx, Fy, 8388736, 21, 416, 29, 425))then  //if it finds rade in the chat box...
      begin
        Wait(500);
        Mouse(cx+10,cy+3,0,0,True);   //it will move the mouse towards it.
        Wait(500);
        BuyTrade
    end;
      end;

      procedure Buyingstatement; //This starts talking using your buying statement.
    var Fx, Fy : integer;
    begin
    wait(1000); //Waits a few seconds before typing again.
    Message1:= 'buying up to '+ IntToStr(howmany) + ' ' + whatyouwannabuy +'! for ' +  IntToStr(eaprice) + 'ea!';   //this SHOULD make the typing message work....
    typesend(Message1);  //this will make it look like the line above is being typed by a human.
        if (FindColor(Fx, Fy, 8388736, 21, 416, 29, 425)) then
        begin
        StartTrade;
    end;
    {------------------------------------------------------------------------------------------}

    begin                    ///////////////////////////////////
    repeat                   //////{  Rinse, Lather, Repeat. }//
    buyingstatement;         ///////////////////////////////////
    until(FindColor(Fx, Fy, 8388736, 21, 416, 29, 425));  //until the trade color is found in the last chat line.
    end;                   ////////////////////////////////////
    end.
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

  5. #5
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    You may edit out the script now.

    SCAR Code:
    procedure Buyingstatement; //This starts talking using your buying statement.
    var Fx, Fy : integer;
    begin
    wait(1000); //Waits a few seconds before typing again.
    Message1:= 'buying up to '+ IntToStr(howmany) + ' ' + whatyouwannabuy +'! for ' +  IntToStr(eaprice) + 'ea!';   //this SHOULD make the typing message work....
    typesend(Message1);  //this will make it look like the line above is being typed by a human.
        if (FindColor(Fx, Fy, 8388736, 21, 416, 29, 425)) then
        begin
        StartTrade;
    end;
    end;
    {------------------------------------------------------------------------------------------}
     
    begin                    ///////////////////////////////////
    repeat                   //////{  Rinse, Lather, Repeat. }//
    buyingstatement;         ///////////////////////////////////
    until(FindColor(Fx, Fy, 8388736, 21, 416, 29, 425));  //until the trade color is found in the last chat line.
                            ////////////////////////////////////
    end.

  6. #6
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Theres an edit button for a reason jason

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

    Default

    tee-hee! ty it works!
    now to test it out!

    EDIT: see? i can use an edit button :P oh, and, how exactly do i set as global? do i put it under the Vars spot at the beggining?
    and thanks for the compliment :P
    http://www.fenjer.com/adnan/SRL/16/20/Merchampion.png
    Merchampion is going to be the ultimate autoing script! It will buy items for your set amount of price; trade people without you having to be there, and once your money is all out; guess what! It's going to sell the item for a different set amount of price! It's merchanting without you having to be there

  8. #8
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by JAD View Post
    Theres an edit button for a reason jason
    *GASP!*

    And I was so cool there for a minute

    But yes.

    Global : At the top

    Local : In individual procedures

  9. #9
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Jason2gs View Post
    *GASP!*

    And I was so cool there for a minute

    But yes.

    Global : At the top

    Local : In individual procedures
    Lol Jason, if you want to be cool, you'd join me and pwnazor's forums we have quite a few members from here that joined and community members so if you want to stay cool you should join

  10. #10
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Oooh, a real domain, I see

    I made a forum too, but it's just a cheap-o smfforfree2 one

    Edit: Your link tis broken

  11. #11
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm.. thats odd.

    Edit: fixed now. try joining again I had .com not .net

  12. #12
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Oooh, nice

    Mine's in my sig. Not really anyone right now, but it'll grow!

  13. #13
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    [offtopic]
    I would have to agree, JAD is t3h uberness,,, and,,, i guess ur ok too jason ,, just think, now you really will be cool! I am thinking of joining so i can be cool too! If thats ok?
    [/offtopic]
    [semihelpful]
    The most obvious reason that it would say semicolon expected is because it expects that there would be a semicolon somewhere
    [/semihelpful]

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 05-17-2008, 12:48 PM
  2. var expected :s
    By ShowerThoughts in forum OSR Help
    Replies: 12
    Last Post: 09-25-2007, 07:33 PM
  3. Semicolin expected in walk procedure
    By wtf i sp4nk in forum OSR Help
    Replies: 4
    Last Post: 04-02-2007, 11:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •