Thread: [PI] Adding Exp Lamps

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11  
    The One And Only

    01053's Avatar
    Join Date
    Apr 2011
    Age
    28
    Posts
    2,887
    Thanks given
    417
    Thanks received
    885
    Rep Power
    856
    Quote Originally Posted by Kr0nik View Post
    I am in complete confusion. I found a snippit I believe of where this came from and they lost me about 3/4 of the way through. Anyway I could get a link to how enums work ?
    Uhh I didn't get that from a tutorial wrote it myself quickly, and here this might help you, https://docs.oracle.com/javase/tutor...vaOO/enum.html


    Reply With Quote  
     

  2. #12  
    Registered Member Kr0nik's Avatar
    Join Date
    Apr 2016
    Age
    31
    Posts
    110
    Thanks given
    14
    Thanks received
    5
    Rep Power
    22
    Quote Originally Posted by Kostoavk View Post
    For adding the public integer. Is there a certain place I have to enter it in or can it be applied anywhere in the playerassist code file?

    Sorry im a noob and practicing making my own server from scratch.
    Nope no specific area to add it in. Just somewhere in Player.java not playerassistant.java
    need anymore help PM me or Skype.


    Reply With Quote  
     

  3. #13  
    Registered Member
    Join Date
    Jul 2016
    Posts
    27
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    what does an "orphaned" case mean and why do i get this error? Thanks..

    Code:
    src\server\model\players\packets\ClickItem.java:40: error: orphaned case
                          case 2528:
                          ^
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  4. #14  
    Registered Member Kr0nik's Avatar
    Join Date
    Apr 2016
    Age
    31
    Posts
    110
    Thanks given
    14
    Thanks received
    5
    Rep Power
    22
    Quote Originally Posted by iwhenfalli View Post
    what does an "orphaned" case mean and why do i get this error? Thanks..

    Code:
    src\server\model\players\packets\ClickItem.java:40: error: orphaned case
                          case 2528:
                          ^
    1 error
    Press any key to continue . . .
    An orphaned case means it is not under a "switch" statement.

    Add me on Skype and I can further assist you. Marcusperrin75

    EDIT:
    add this above your case,
    switch(itemId) {
    and don't forget to add another } at the end of the last break;
    Should look similar to this:

    switch(itemId){
    case 2528:
    break;
    case 4447:
    break;
    case 7498:
    break;
    }


    Reply With Quote  
     

  5. #15  
    Registered Member
    Join Date
    Mar 2017
    Posts
    18
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    Confirm button doesn't work. how do I make this work?
    Reply With Quote  
     

  6. #16  
    Registered Member Kr0nik's Avatar
    Join Date
    Apr 2016
    Age
    31
    Posts
    110
    Thanks given
    14
    Thanks received
    5
    Rep Power
    22
    Quote Originally Posted by TheAlphaFlame View Post
    Confirm button doesn't work. how do I make this work?
    i can still help if you need.


    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

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. [PI] Adding a simple Xp Lamp Base [PI]
    By Mrslayer in forum Tutorials
    Replies: 15
    Last Post: 01-05-2016, 06:11 PM
  2. PI massclicking an exp lamp.
    By dubby in forum Help
    Replies: 6
    Last Post: 07-13-2012, 03:38 AM
  3. [PI] Adding lamps 10$
    By 3lou 55 in forum Requests
    Replies: 5
    Last Post: 08-01-2011, 10:15 PM
  4. [PI]Adding exp for killing a player
    By Ed17 in forum Help
    Replies: 4
    Last Post: 07-22-2011, 07:13 AM
  5. Replies: 4
    Last Post: 08-15-2010, 04:36 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
  •