Thread: Another variable error.

Results 1 to 9 of 9
  1. #1 Another variable error. 
    Registered Member
    Join Date
    Apr 2014
    Posts
    68
    Thanks given
    11
    Thanks received
    0
    Rep Power
    11
    Hi, so i have another noob question for you guys, this time i couldn't figure it out myself.
    I've been trying to add fairy rings and i get these 2 variable errors in my buttonhandler.java and objecthandler.java
    I know there is some kind of symbol missing from these lines but i'm just not sure which one.

    Here are the lines which the error is at -
    objecthandler.java
    Code:
    				     case "fairy ring":
                            FairyRing.handleObject(object, player);
                            break;

    buttonhandler.java

    Code:
     	} else if (interfaceId == 734) { //Fairy rings
                FairyRing.handleButton(player, componentId);
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2014
    Posts
    25
    Thanks given
    0
    Thanks received
    5
    Rep Power
    11
    Code:
    case "fairy ring":
                                FairyRing.handleObject(object, player);
                                break;
    -removed
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2014
    Posts
    68
    Thanks given
    11
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by bomba View Post
    Code:
    case "fairy ring":
                                FairyRing.handleObject(object, player);
                                break;
    Yeah sorry forgot to copy paste that break;, i already had it.
    Still no clue on how to fix that error. No clue which symbol is missing.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2011
    Posts
    454
    Thanks given
    17
    Thanks received
    37
    Rep Power
    61
    I think your switch statement doesn't take strings, try changing "fairy ring" to the fairyring object id.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2014
    Posts
    68
    Thanks given
    11
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Gershon View Post
    I think your switch statement doesn't take strings, try changing "fairy ring" to the fairyring object id.
    Nope man, still the same error and the case "fairy ring" is on line 1202, the error is on line 1203
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2011
    Posts
    454
    Thanks given
    17
    Thanks received
    37
    Rep Power
    61
    Paste the error?
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Apr 2014
    Posts
    68
    Thanks given
    11
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Gershon View Post
    Paste the error?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jan 2014
    Posts
    25
    Thanks given
    0
    Thanks received
    5
    Rep Power
    11
    Import the FairyRing.java
    -removed
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Registered Member
    Join Date
    Apr 2014
    Posts
    68
    Thanks given
    11
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by bomba View Post
    Import the FairyRing.java
    Thanks a bunch man! Works like it should!
    Reply With Quote  
     


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. Another "RuneServer" Error
    By Serta in forum Help
    Replies: 1
    Last Post: 07-20-2011, 09:19 AM
  2. Another webclient error
    By bloodychef in forum Help
    Replies: 12
    Last Post: 07-13-2010, 08:00 AM
  3. Another Stupid Error..
    By minutes in forum Application Development
    Replies: 7
    Last Post: 12-24-2009, 01:33 AM
  4. another stupid error
    By Leanbow in forum Help
    Replies: 0
    Last Post: 11-11-2009, 03:54 PM
  5. Replies: 0
    Last Post: 05-03-2009, 04:39 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
  •