Page 10 of 11 FirstFirst ... 891011 LastLast
Results 226 to 250 of 258

Thread: A brief lesson on fixing annoying errors :P

  1. #226
    Join Date
    Mar 2007
    Location
    Alberta, Canada
    Posts
    1,780
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    What do I do for type mismatch in the script?

  2. #227
    Join Date
    Jun 2008
    Location
    Somewhere
    Posts
    117
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    Nice tut

    I forget about the comma alot to

  3. #228
    Join Date
    Mar 2007
    Location
    Alberta, Canada
    Posts
    1,780
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    ghostman, how do you become a lesser demon?

  4. #229
    Join Date
    Jul 2008
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Very informative, the errors make more sense now, lol.

  5. #230
    Join Date
    Nov 2007
    Location
    hamilton, victoria, australia
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok im totaly stumped on how to fix this
    [Runtime Error] : Exception: Canvas does not allow drawing in line 60 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Login.scar

    any ideas?
    !! anyone who doesnt give jagex $h1t makes my list !!

  6. #231
    Join Date
    Oct 2008
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    wow tyvm i needed this.

  7. #232
    Join Date
    Oct 2008
    Posts
    33
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If this thread is still alive...I had been getting problems saying "Then" expected in line:x. ( Already have error up there ) In my case i already had an "Then" after the IF. It turned out to be a problem with having to many parenthesis.Add that to the error in the first post please.

  8. #233
    Join Date
    Jan 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i get an error and it.....

    SCAR Code:
    Line 46: [Error] (256:11): Unknown identifier 'CreateTPAFromBMP' in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Math.scar

    line 46 says this.....

    SCAR Code:
    Result := CreateTPAFromBMP( GetBitmapDC(TempBMP));

  9. #234
    Join Date
    Feb 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I can say one thing:Your MASTER

  10. #235
    Join Date
    May 2008
    Location
    Oregon, USA
    Posts
    154
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I like this, thanks. I have fixed like 5 errors without needing to post thanks to this.

  11. #236
    Join Date
    Aug 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i get the same error as madmike..

    Failed when compiling
    Line 46: [Error] (311:11): Unknown identifier 'CreateTPAFromBMP' in script C:\Program Files\SCAR 3.20\includes\SRL/SRL/Core/Math.scar


    what to do??
    Opinions are like buttholes, everyone has them and they all stink

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

    Default

    Quote Originally Posted by basse View Post
    i get the same error as madmike..

    Failed when compiling
    Line 46: [Error] (311:11): Unknown identifier 'CreateTPAFromBMP' in script C:\Program Files\SCAR 3.20\includes\SRL/SRL/Core/Math.scar


    what to do??
    I am not 100% sure on that, but I don't think that you have the latest revision of SRL. Try updating SRL and tell me if that fixes it.

  13. #238
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Rep++
    The Best guide I have used probably. I have favorited this page
    I have used this sooooo many times.

    Thank you

    T~M

  14. #239
    Join Date
    Aug 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This tut helps me out.. These problems happen a lot and now I am going to finish them all, thanks

  15. #240
    Join Date
    Sep 2008
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you have said that the out of range errors are cause by improperly setting your players, but I have quadruple checked to make sure they are set properly and I still get this error:
    "[Runtime Error] : Out Of Range in line 39 in script C:\Program Files\SCAR 3.21\includes\SRL\SRL\Core\AntiBan.scar"

    Does anyone know how to fix this?

  16. #241
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Gravedig because this tutorial is needed, i was making a tutorial on this when i forgot to search if one was made.

  17. #242
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by belgin fish View Post
    ok JAD This Is Bothering Me

    Line 61: [Error] (18102:1): comma (',') expected in script

    60-wait(10+random(3))//needed another closing bracket there
    61-FindTalk;
    62-if(FindFight) then

    the numbers are just the lines 60, 61, 62
    fancy fixing my error:

    On compiling I am getting the following warnings:

    Code:
    [Warning] (392:17): "True and" is not needed at line 391
    [Warning] (1:1): Calculation always evaluates to True at line 0
    [Warning] (1:1): "and True" is not needed at line 0
    Lime 391:
    Simba Code:
    If((LootBones and PtoLB) or (JustLootBones)) then

    obviously I can't paste line 0 but if you want to see the whole script go here

  18. #243
    Join Date
    Dec 2011
    Location
    Texas
    Posts
    348
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Finally I fixed my small annoying error.

  19. #244
    Join Date
    Dec 2006
    Location
    Georgia
    Posts
    84
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    BUMP - This shit is good, Someone Should make an updated version with more Error Code Troubleshooting! TY!
    Future SRL Member.

  20. #245
    Join Date
    Feb 2012
    Location
    Wilkesboro, NC
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    WalkToTheDepositBox; <- Compiling Failed
    ☆Haterz Make Me Famouz☆

  21. #246
    Join Date
    Nov 2007
    Posts
    77
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I wish i seen this befor having to find the solutions myself xD

  22. #247
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    You guys are making enjoy learning more about scripts when I came here for 07 scape. I never knew about color bots before searching up 07 scape bots on google and powerbot forum but the more I learn the more I feel educated on scripts and how they work. Thanks for this. Might make my own script.

  23. #248
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Quote Originally Posted by nemaster View Post
    You guys are making enjoy learning more about scripts when I came here for 07 scape. I never knew about color bots before searching up 07 scape bots on google and powerbot forum but the more I learn the more I feel educated on scripts and how they work. Thanks for this. Might make my own script.
    Glad to hear you want to learn scripting
    Current Project: Retired

  24. #249
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Gucci View Post
    Glad to hear you want to learn scripting
    Its actually not so overwhelming once you get the hang of it. Im making scripts for flash games in order to get my barrings. Scripts can be used for so much more than runescape.

  25. #250
    Join Date
    Feb 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    i get the semicolon error but i dont know where to add it too, have been looking at variables and function/procdures but no luck

    this is the error

    procedure SaveFormInfo(Sender: TObject);
    begin
    DsgnForm.ModalResult := mrOk; <---- that line

Page 10 of 11 FirstFirst ... 891011 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
  •