Thread: Help[Adding New Ranks]

Results 1 to 7 of 7
  1. #1 Help[Adding New Ranks] 
    Registered Member
    Join Date
    Oct 2011
    Posts
    50
    Thanks given
    4
    Thanks received
    0
    Rep Power
    25


    imgur: the simple image sharer
    Not sure what to do:/
    Reply With Quote  
     

  2. #2  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Declare chaticons in client.java
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2011
    Posts
    50
    Thanks given
    4
    Thanks received
    0
    Rep Power
    25
    Quote Originally Posted by Karma_K View Post
    Declare chaticons in client.java
    How do I do that?

    EDIT: I also have like ranks i want to add Saved as CHANTICON.1PNG etc.
    Reply With Quote  
     

  4. #4  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    => Client help section

    OT: your array of chatIcons doesn't exist (or it has another name):
    Spirte[] chatIcons = new Sprite[<numerOfSpritesForThisArray>];
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2011
    Posts
    50
    Thanks given
    4
    Thanks received
    0
    Rep Power
    25
    Quote Originally Posted by TheChosenOne View Post
    => Client help section

    OT: your array of chatIcons doesn't exist (or it has another name):
    Spirte[] chatIcons = new Sprite[<numerOfSpritesForThisArray>];
    I couldn't find any of those in Client.java
    Reply With Quote  
     

  6. #6  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    Then you should declare it like I showed.
    Reply With Quote  
     

  7. #7  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    Simply placing "public Spirte[] chatIcons = new Sprite[<numerOfSpritesForThisArray>];" outside any method inside the client.java class will create the variable (and get rid of "cannot find symbol"). You will need to change <numberOfSpritesForThisArray> by the number of sprites you plan to place in the array.
    If it complains about being referenced from a static content, make it say "public static Sprite[]" instead of "public Sprite[]".
    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. Adding new ranks eg.Dicer rank help
    By maazh in forum Help
    Replies: 9
    Last Post: 09-09-2012, 10:29 PM
  2. Replies: 0
    Last Post: 08-29-2012, 02:31 PM
  3. Adding new ranks HELP!
    By maazh in forum Help
    Replies: 9
    Last Post: 08-16-2012, 04:23 AM
  4. Adding new ranks HELP!
    By maazh in forum Help
    Replies: 0
    Last Post: 08-16-2012, 01:59 AM
  5. Help, adding new headers (1 error left)
    By Kenshin1388 in forum Help
    Replies: 9
    Last Post: 10-22-2009, 03:23 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
  •