Page 3 of 11 FirstFirst 12345 ... LastLast
Results 51 to 75 of 258

Thread: A brief lesson on fixing annoying errors :P

  1. #51
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    JAD u helped us all lol

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

    Default

    Quote Originally Posted by rudeboialex View Post
    JAD u helped us all lol
    Lol, good

  3. #53
    Join Date
    Apr 2007
    Location
    Adelaide, Australia
    Posts
    160
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ummm... I kind of got another error with a progress report. Error is
    Line 72: [Error] (18113:1): Invalid number of parameters in script C:\WINDOWS\...
    And line 72 is
    Writeln('+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+')
    Thanks.

    Tazzie
    Are YOU into things to do with gaming consoles, glitches, mods or just meeting new people?
    Join Se7ensins and learn how to do the above!
    http://www.fenjer.com/adnan/SRLStats/824.png

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

    Default

    Quote Originally Posted by Tazzie 02 View Post
    Ummm... I kind of got another error with a progress report. Error is

    And line 72 is


    Thanks.

    Tazzie
    Hmm.. Interesting. Could you please post the whole script? Or at least that whole procedure? I'll see if I can fix it (Probably can).

  5. #55
    Join Date
    Jun 2007
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    idk what to do with this error:

    Line 14: [Error] (14:4): period ('.') expected in script

    this is my entire script:

    program KingOfButtons;
    var x,y:Integer;
    const ButtonColor=3158271;
    Procedure StartGame;
    begin
    MoveMouse(595,68);
    ClickMouse(595,68,true);
    MoveMouse(543,29);
    ClickMouse(543,29,true);
    end;
    begin
    StartGame;
    end;
    begin
    if(FindColor(x,y,ButtonColor,416,-387,965,12))then
    begin
    MoveMouse(x,y);
    ClickMouse(x,y,true);
    end;
    end.

    It's one of my first scripts and idk wut to do. plz help!

    EDIT: ok ty

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

    Default

    this here:

    begin
    StartGame;
    end;

    isn't a procedure. You make it look like it's your main loop starting with a begin and it's supposed to end with a "end.". Change your loop around or make extra procedures to try to fix that.

    Hope you get what I mean

  7. #57
    Join Date
    Jun 2007
    Location
    In my computer room
    Posts
    148
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks I fixed soooooo many scripts now ZOMG i can't express my gratitude. LOL i sound corny.

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

    Default

    Quote Originally Posted by drnewheart View Post
    Thanks I fixed soooooo many scripts now ZOMG i can't express my gratitude. LOL i sound corny.
    Lol. Glad to have helped a fellow scripter

  9. #59
    Join Date
    Apr 2007
    Posts
    169
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i was so lost and fighting with Error 5, until yuor tut. thanks youve saved my day twice (first with that shop inventory full thingy)
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig

    http://www.fenjer.com/adnan/SRL/20/33/BucketX.png

    http://www.fenjer.com/adnan/SRLStats/742.png

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

    Default

    Quote Originally Posted by Maxine View Post
    i was so lost and fighting with Error 5, until yuor tut. thanks youve saved my day twice (first with that shop inventory full thingy)
    Lol, good to hear! Glad this tut has help some people

  11. #61
    Join Date
    Jun 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thank you very much sir

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

    Default

    Quote Originally Posted by stay bombin View Post
    thank you very much sir
    No problem. I love it when people call me sir when I'm only 13 lol.

  13. #63
    Join Date
    Jun 2007
    Location
    Tampa, FL
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    These are some of the errors i find
    comma (',') expected in script
    which means yoru missing a comma

    'THEN' expected in script
    which means that you didnt type 'then' after an if statement...or you put a
    semicolon ";" in the sentence before you typed then.

    String error in script
    which means that you left a ' out when using them ex.
    Writeln('I am happy)
    Syntax error in script
    Which I think means that you didnt use the command or function parameters right. ex. typing a number value where there should be a string

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

    Default

    Quote Originally Posted by x13om13e12x View Post
    you could have errors

    which means you didnt count the Parentases


    which means yoru missing a comma


    which means that you didnt type 'then' after an if statement...or you put a
    semicolon ";" in the sentence before you typed then.


    which means that you left a ' out when using them ex.



    Which I think means that you didnt use the command or function right.
    Thank you very much! This has helped me a lot in improving my tutorial. I never get many errors like that anymore because I know how things should be, but I got them all the time when I was new to scripting and forgot about them

    But this has added lots of new errors to my tutorial, thanks!

  15. #65
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by JAD View Post
    No problem. I love it when people call me sir when I'm only 13 lol.


    One clever 13 year old!

    Wish i code like you and im 21!
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  16. #66
    Join Date
    Jun 2007
    Location
    Tampa, FL
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default identifier

    Jad I just finished my new cow hide script. But i have an identifier error, and i checked through all the repeats begins untils and ends like 10 times, but nothing is wrong. Here is the procedure.
    SCAR Code:
    Procedure BankingHides;  //this is the line that the identifier error is.
    begin
      CowHideDTM := DTMFromString('78DA6314626060E06740013BD7AD63F80FA41' +
           '981F83F10304A0119AC0C6880118904D2D240428A801A903D3204' +
           'D4B0030971026AD880040F7E35009E8D07F2');
      wait(100 + random(135))
      for A:= 3 to 8 do
      begin
        FindBitmapToleranceIn(BankBMP(x,y,MMX1,MMY1,MMX2,MMY2,A);
        If(FindBitmapToleranceIn(BankBMP(x,y,MMX1,MMY1,MMX2,MMY2,A))) then
        begin
          break;
        end;
      end;
      MMouse(x,y-17,0,0);
      Mouse(x,y-17,0,0,true);
      flag;
      wait(387 + random(154));
      repeat
        FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3);
        if(not(FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3)))then
        begin
          Tries:=0;
          repeat
            Wait(400 + random(50));
            Tries := Tries + 1;
            If Tries=20 then
            Begin
              Writeln('Cant find Bank...next player');
              NextPlayer(false);
            end;
          until FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3);
        end;
      until FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3);
      MMouse(x,y,2,2,true);
      if(not(IsUpText('ank booth')))
      begin
        repeat
          FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3);
          if(not(FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3))) then
          begin
            Tries:=0;
            repeat
              Wait(400 + random(50));
              Tries := Tries + 1;
              If Tries=20 then
              Begin
                Writeln('Cant find Bank');
                NextPlayer(false);
              end;
            until FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3);
          end;
        until IsUpText('ank booth',true)
      end;
      MMouse(x,y,2,2);
      Mouse(x,y,2,2,false);
      ChooseOption(x,y,'Use-quickly');
      if (FindDTM(CowHideDTM,x,y,558,308,740,463));
      begin
        Mouse(x,y,2,2,false);
        ChooseOption(x,y,'All');
      end;
      CloseBank;
      Loads2:= Loads2 + 1
    end;

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

    Default

    Quote Originally Posted by x13om13e12x View Post
    Jad I just finished my new cow hide script. But i have an identifier error, and i checked through all the repeats begins untils and ends like 10 times, but nothing is wrong. Here is the procedure.
    SCAR Code:
    Procedure BankingHides;  //this is the line that the identifier error is.
    begin
      CowHideDTM := DTMFromString('78DA6314626060E06740013BD7AD63F80FA41' +
           '981F83F10304A0119AC0C6880118904D2D240428A801A903D3204' +
           'D4B0030971026AD880040F7E35009E8D07F2');
      wait(100 + random(135))
      for A:= 3 to 8 do
      begin
        FindBitmapToleranceIn(BankBMP(x,y,MMX1,MMY1,MMX2,MMY2,A);
        If(FindBitmapToleranceIn(BankBMP(x,y,MMX1,MMY1,MMX2,MMY2,A))) then
        begin
          break;
        end;
      end;
      MMouse(x,y-17,0,0);
      Mouse(x,y-17,0,0,true);
      flag;
      wait(387 + random(154));
      repeat
        FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3);
        if(not(FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3)))then
        begin
          Tries:=0;
          repeat
            Wait(400 + random(50));
            Tries := Tries + 1;
            If Tries=20 then
            Begin
              Writeln('Cant find Bank...next player');
              NextPlayer(false);
            end;
          until FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3);
        end;
      until FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3);
      MMouse(x,y,2,2,true);
      if(not(IsUpText('ank booth')))
      begin
        repeat
          FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3);
          if(not(FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3))) then
          begin
            Tries:=0;
            repeat
              Wait(400 + random(50));
              Tries := Tries + 1;
              If Tries=20 then
              Begin
                Writeln('Cant find Bank');
                NextPlayer(false);
              end;
            until FindColorTolerance(x,y,8096403,MSX1,MSY1,MSX2,MSY2,3);
          end;
        until IsUpText('ank booth',true)
      end;
      MMouse(x,y,2,2);
      Mouse(x,y,2,2,false);
      ChooseOption(x,y,'Use-quickly');
      if (FindDTM(CowHideDTM,x,y,558,308,740,463));
      begin
        Mouse(x,y,2,2,false);
        ChooseOption(x,y,'All');
      end;
      CloseBank;
      Loads2:= Loads2 + 1
    end;
    Count your begins/repeats and ends/untils from the procedure above. That is most likely the problem. If not, just give me the whole procedure above that to and I can probably fix it

  18. #68
    Join Date
    Jun 2007
    Location
    Tampa, FL
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The previous procedure is very long, and i don't feel like exposing most o fmy script, so im gona send it to you in a message.
    Edit: Nvm i read through the procedure and I found alot of errors, i screwed up on some standards and thought i had ended the begin before going on cause i was already at the same spaces from the end. and ty for the help
    Can't sleep Clowns will eat me
    Can't eat Clowns will sleep with me

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

    Default

    Quote Originally Posted by x13om13e12x View Post
    The previous procedure is very long, and i don't feel like exposing most o fmy script, so im gona send it to you in a message.
    Edit: Nvm i read through the procedure and I found alot of errors, i screwed up on some standards and thought i had ended the begin before going on cause i was already at the same spaces from the end. and ty for the help
    np I had a feeling that that was what happened

  20. #70
    Join Date
    Jun 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i m using the willow chopper and it keeps saying error detecting compas angle how do i solve it at what bank booth do i need to stand?

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

    Default

    Quote Originally Posted by hardcoregek9 View Post
    i m using the willow chopper and it keeps saying error detecting compas angle how do i solve it at what bank booth do i need to stand?
    what willow chopper? My edgevil willow chopper? If your talking about that, this is the wrong section...

    But that script hasn't been updated by me in forever, and I was pretty new to scripting when I made that.. And I don't plan on updating it, but I may

    If that wasn't what you were talking about, please tell me what you meant by your post.

  22. #72
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nice guide jad, lol this helped me with like 5 errors in my script except for one that i cant figure out i think it should work but it says "line 422: [Error] (14832:10): 'THEN' expected in script" heres part of the script if u wanna help

    Procedure loginme1;
    begin;
    DeclarePlayers;
    wait(500 - random(250))
    LoginPlayer;
    wait(19000 + random(4000) - random(4000));
    if NoNet :=true then
    FindNet;
    end;

    what did i do wrong ( besides the functions and procedures wouldnt work cause there before that in whole script)

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

    Default

    You have a ":" in your NoNet = thing

    If your checking a result, like if This = this then or whatever, then you just use a "=" sign. If your changing a variable, like if(InChat('JAD is awesome!'))then OurVariable := 10293765; you'd use a ":" like so

    So just take out that ":" and you should be good.

    And thanks a lot

  24. #74
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh ok thanks w00t jad is rad

  25. #75
    Join Date
    Dec 2006
    Location
    utah
    Posts
    1,427
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    omg! thanks

    i was wondering why i was getting a ERROR
    SCAR Code:
    Program New;
     begin
        Writeln( hello World);
    end;

    didnt know there was spose to be 'hello world' and "end."
    thanks Jad...
    lol jk im bored.. nice tut maybe people will stop buging me... gah..
    edit : although i dont think that will happen lol...

Page 3 of 11 FirstFirst 12345 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. A brief lesson on RadialWalk
    By WT-Fakawi in forum OSR Intermediate Scripting Tutorials
    Replies: 80
    Last Post: 05-02-2012, 12:18 PM
  2. College Homework Lesson
    By Moloch in forum OSR Help
    Replies: 2
    Last Post: 11-05-2008, 02:04 PM
  3. 4 errors Need Help Fixing
    By NiCbaZ in forum OSR Help
    Replies: 1
    Last Post: 04-11-2008, 06:10 AM
  4. Fixing Errors [Video]
    By JuKKa in forum Outdated Tutorials
    Replies: 0
    Last Post: 06-09-2007, 02:27 PM
  5. Fixing This Simple Errors.
    By kooldude in forum OSR Help
    Replies: 2
    Last Post: 05-16-2007, 07:10 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
  •