Thread: M boxes "I'm new at this"

Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1 M boxes "I'm new at this" 
    Registered Member
    Join Date
    Dec 2015
    Posts
    30
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Could someone tell me what I'm doing wrong here, I thought it was just as simple as copy and paste I thought wrong
    https://gyazo.com/f6a011353223489534d0c7f2bc726024
    Reply With Quote  
     

  2. #2  
    The One & Only


    Join Date
    Oct 2013
    Posts
    2,572
    Thanks given
    422
    Thanks received
    1,620
    Rep Power
    5000
    line 2007 and 2015
    p.s: i dont even code, I just have eyes and I can see where the error is ... use ur eyes m8
    Attached image
    Spoiler for More Signatures:

    Attached image
    Credits to Niceman, Vippy and Dami for the awesome signatures
    Attached image
    Attached image


    Reply With Quote  
     

  3. Thankful users:


  4. #3  
    Registered Member
    Join Date
    Dec 2015
    Posts
    30
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by Royal View Post
    line 2007 and 2010
    p.s: i dont even code, I just have eyes and I can see where the error is ... use ur eyes m8
    Feel free to enlighten me please, You don't really need to comment if you're not going to be useful.
    Reply With Quote  
     

  5. #4  
    The One & Only


    Join Date
    Oct 2013
    Posts
    2,572
    Thanks given
    422
    Thanks received
    1,620
    Rep Power
    5000
    Quote Originally Posted by boby9 View Post
    Feel free to enlighten me please, You don't really need to comment if you're not going to be useful.
    bro there's a fkn red X on those lines, can you not see ?
    Attached image
    Spoiler for More Signatures:

    Attached image
    Credits to Niceman, Vippy and Dami for the awesome signatures
    Attached image
    Attached image


    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Registered Member
    Join Date
    Sep 2010
    Posts
    216
    Thanks given
    25
    Thanks received
    37
    Rep Power
    15
    post the error but based off what i can barely see there you either need a return; in the item above it or another } for the item above it ( thats my guess without really seeing the code or error
    Reply With Quote  
     

  8. #6  
    Registered Member
    Join Date
    Dec 2015
    Posts
    30
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by Royal View Post
    bro there's a fkn red X on those lines, can you not see ?
    Those brackets "}", Are a main thing I need. If I remove them the whole line messes up. You really aren't any help at all sorry.
    Reply With Quote  
     

  9. #7  
    Banned
    Join Date
    Aug 2015
    Posts
    248
    Thanks given
    129
    Thanks received
    56
    Rep Power
    0
    Quote Originally Posted by boby9 View Post
    Those brackets "}", Are a main thing I need. If I remove them the whole line messes up. You really aren't any help at all sorry.
    Most likely, there's one too many brackets in your code, or there are 1 less than needed. Always make sure that you catch the {

    & this isn't really rsps related, if I were you I would probably skim through a java tutorial or something. Just give it 10 minutes and you'll know small things like this in the future

    one more edit, Royal was actually trying to help you
    Reply With Quote  
     

  10. #8  
    Registered Member
    Join Date
    Sep 2014
    Posts
    452
    Thanks given
    13
    Thanks received
    51
    Rep Power
    53
    Quote Originally Posted by boby9 View Post
    Those brackets "}", Are a main thing I need. If I remove them the whole line messes up. You really aren't any help at all sorry.
    Post a picture of the whole thing, i think you just have to many brackets or they are placed in the wrong spots.
    Reply With Quote  
     

  11. #9  
    Registered Member
    Join Date
    May 2012
    Posts
    286
    Thanks given
    7
    Thanks received
    49
    Rep Power
    25
    Quote Originally Posted by Squashy View Post
    Post a picture of the whole thing, i think you just have to many brackets or they are placed in the wrong spots.
    That and just curious, why are you adding every single random item to they players inv?

    PS. if id have to guess id say you probably need else before the is and another } at the end
    Reply With Quote  
     

  12. #10  
    Banned

    Join Date
    Mar 2011
    Posts
    657
    Thanks given
    105
    Thanks received
    75
    Rep Power
    0
    2011-2013 will not work anyways. You're making a for loop to pick which item to grab, so it looks like it'll loop through each each item. Try using the Random utility.

    Random r = new Random(); //Call instance of Random Class

    int num = r.nextInt(RandomItems.length);

    addItem(RandomItems[num], 1);

    You also need a bracket at the end of your for loop as I can see you've placed this code under your class bracket. So the red bracket on the top, remove that one and put it under your method and you should be good.
    Reply With Quote  
     

Page 1 of 3 123 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. Replies: 9
    Last Post: 01-31-2015, 05:15 PM
  2. Replies: 1
    Last Post: 11-07-2013, 10:09 AM
  3. [525] error pls help (im new at this :D)
    By GaMePaPa in forum Help
    Replies: 4
    Last Post: 02-23-2009, 05:52 PM
  4. Replies: 11
    Last Post: 12-04-2008, 02:56 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
  •