Thread: Fixing Compiler Errors (Includes 100 errors)

Page 3 of 8 FirstFirst 12345 ... LastLast
Results 21 to 30 of 73
  1. #21  
    Registered Member
    Whired's Avatar
    Join Date
    Aug 2007
    Posts
    2,126
    Thanks given
    238
    Thanks received
    500
    Rep Power
    822
    Nice guide but please don't suggest this because I fear people will take it too literally:
    Quote Originally Posted by Shoes View Post
    Code:
    public void exampleMethod() {
        int i = 5;
        double d = 1.5;
        i = (int) d * 6; // you cast the double to an int, thus eliminating the error.
    }
    Code:
    public void exampleMethod() {
        int i = 5;
        double d = 1.5;
        i = (int) (d * 6); // you cast the double to an int, thus eliminating the error.
    }

    That might prevent some "Math.random() isn't working" or "Equation isn't right" threads
    Reply With Quote  
     

  2. #22  
    Registered Member
    TORONTO's Avatar
    Join Date
    Feb 2010
    Age
    30
    Posts
    873
    Thanks given
    348
    Thanks received
    212
    Rep Power
    92
    Well done, but you should update it once in a while, there are other errors as well lol
    retired from RSPS for good

    EDIT:
    I came back one last time just to thank this post:
    [SPOIL]
    [/SPOIL]
    Reply With Quote  
     

  3. #23  
    Banned
    Join Date
    Apr 2011
    Posts
    500
    Thanks given
    3
    Thanks received
    40
    Rep Power
    0
    Very useful for starters. I remember coding delta and all I would keep getting are these errors I would somehow fix. If i saw this, there would have been lots of more stress. great work of explaining for newcomming coders
    Reply With Quote  
     

  4. #24  
    Registered Member DeathTacoz's Avatar
    Join Date
    Jun 2011
    Posts
    176
    Thanks given
    4
    Thanks received
    11
    Rep Power
    1
    What about orphaned cases and reached end while parsing. I've seen that alot in the help section. Also, try while catching.
    Favorite thread: http://www.rune-server.org/runescape...item-help.html

    [Today 02:50 AM] Koâk: Paster?
    [Today 02:50 AM] Matt: Did he touch you too?
    [Today 02:49 AM] Sydney: Then some paster lied to me
    Reply With Quote  
     

  5. #25  
    Banned

    Join Date
    Oct 2009
    Posts
    438
    Thanks given
    29
    Thanks received
    108
    Rep Power
    0
    Quote Originally Posted by DeathTacoz View Post
    What about orphaned cases and reached end while parsing. I've seen that alot in the help section. Also, try while catching.
    Those are obvious, Orphaned cases are generally from a switch statement laying outside of a case, and reached end while phrasing is because you have 1 too many/not enough brackets. And try/catch is obvious too.

    You can try adding,

    Unreachable Statement (if not added)
    Invalid Escape Character, class is public, should be declared in
    Incompatible Type, unreported Exception
    Illegal Start of Expression, ... cannot be applied to ..., etc.
    Reply With Quote  
     

  6. #26  
    Registered Member FreekySteve69's Avatar
    Join Date
    Jun 2009
    Posts
    606
    Thanks given
    21
    Thanks received
    11
    Rep Power
    42
    Wouldn't an extra bracket give a 100 errors too? That's what i heard anyway.
    Reply With Quote  
     

  7. #27  
    #1 footwear

    Shoes's Avatar
    Join Date
    Aug 2009
    Age
    27
    Posts
    2,612
    Thanks given
    185
    Thanks received
    255
    Rep Power
    579
    Quote Originally Posted by Dragonluck4 View Post
    Wouldn't an extra bracket give a 100 errors too? That's what i heard anyway.
    That's not true, the compiler just tells you to remove it.


    Spoiler for different picture now:
    Reply With Quote  
     

  8. #28  
    Registered Member FreekySteve69's Avatar
    Join Date
    Jun 2009
    Posts
    606
    Thanks given
    21
    Thanks received
    11
    Rep Power
    42
    Oh yeah maybe it's in 508+ dunno.
    Reply With Quote  
     

  9. #29  
    Banned
    Join Date
    May 2011
    Posts
    64
    Thanks given
    11
    Thanks received
    15
    Rep Power
    0
    100 errors can very depending on what you did...
    Reply With Quote  
     

  10. #30  
    #1 footwear

    Shoes's Avatar
    Join Date
    Aug 2009
    Age
    27
    Posts
    2,612
    Thanks given
    185
    Thanks received
    255
    Rep Power
    579
    Quote Originally Posted by $nitro$ View Post
    100 errors can very depending on what you did...
    Go on....


    Spoiler for different picture now:
    Reply With Quote  
     

Page 3 of 8 FirstFirst 12345 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Fixing common compiler errors
    By Dexter Morgan in forum Help
    Replies: 21
    Last Post: 08-13-2011, 09:59 PM
  2. Compiler Errors
    By Shoes in forum Suggestions
    Replies: 15
    Last Post: 06-25-2011, 01:43 AM
  3. 525 help (compiler) no errors*
    By -Deathy in forum Help
    Replies: 8
    Last Post: 09-01-2010, 10:14 PM
  4. Compiler errors?
    By derp in forum Help
    Replies: 0
    Last Post: 06-22-2010, 09:56 PM
  5. Compiler Errors
    By Cody. in forum Help
    Replies: 3
    Last Post: 04-17-2009, 05:34 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
  •