Thread: player item pi

Results 1 to 5 of 5
  1. #1 player item pi 
    Registered Member Ishana's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    285
    Thanks given
    3
    Thanks received
    0
    Rep Power
    50
    in object option 2 ( i removed most of the code )

    i added this under switch

    Code:
    pi.addItem(p, 995, 100000);
    } else {
    p.frames.sendMessage(p, "You Have to Wait to steal again!"); }
    break;
    and added this
    Code:
    PlayerItems pi = new PlayerItems();
    under
    Code:
    
    public class ObjectOption2 implements Packet {
    but when i compile i get this..

    Code:
    .\palidino76\rs2\io\packets\ObjectOption2.java:108: variable pi might not have b
    een initialized
    pi.addItem(p, 995, 70000);
    ^
    Reply With Quote  
     

  2. #2  
    Registered Member
    Santaher0's Avatar
    Join Date
    Sep 2008
    Posts
    2,033
    Thanks given
    324
    Thanks received
    49
    Rep Power
    1282
    you got the method and import to playeritems?
    - Support my project [Only registered and activated users can see links. ]

    - Santaher0's [Only registered and activated users can see links. ]

    - Santaher0's [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Aug 2008
    Posts
    1,171
    Thanks given
    21
    Thanks received
    44
    Rep Power
    0
    Quote Originally Posted by Santaher0 View Post
    you got the method and import to playeritems?
    yes he does
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jul 2008
    Age
    25
    Posts
    5,826
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    It means new PlayerItems() may not be called before you use additem(). So call it inside public client(
    Reply With Quote  
     

  5. #5  
    Registered Member Ishana's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    285
    Thanks given
    3
    Thanks received
    0
    Rep Power
    50
    thank you that worked
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •