Thread: Following a tutorial

Results 1 to 3 of 3
  1. #1 Following a tutorial 
    Donator
    Darkness's Avatar
    Join Date
    Nov 2012
    Age
    26
    Posts
    876
    Thanks given
    121
    Thanks received
    75
    Rep Power
    47
    I'm getting stuck on this tutorial

    http://www.rune-server.org/runescape...on-packet.html

    Alright. I've fixed the client side packet, im pretty sure. In fact getHouse didn't work I added this into client :
    Code:
    	private House house = new house();
    	public boolean getHouse;
    	public boolean inHouse;
    and
    Code:
    	public House getHouse() {
    		return house;
    	}
    But I was given incompatible types or W/E. I've fixed it by adding stuff like this to House
    Code:
    	private Client c;
    
    	public House(Client Client) {
    		this.c = Client;
    	}
    But my friend told me that would bug my packet, even if it compiled right. ( And yeha, it kept being black when I went in my 'house ' )

    So I removed all that and did
    Code:
    	private House house;
    But that dc'd everytime I did :: poh .

    I'm not sure of what I have to add both in client and House, and what not, so it works.
    Attached image
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    For the first one, your giving the constructor no arguments where as you should be giving it a Client argument

    Code:
    Client c;
    Hello hello = new Hello(c);
    Generally it's declared in the Client class so you can do this

    Code:
    Hello hello = new Hello(this);
    For the second one it'll probably give you a nullpointer because you haven't instantiated house
    Reply With Quote  
     

  3. #3  
    Donator
    Darkness's Avatar
    Join Date
    Nov 2012
    Age
    26
    Posts
    876
    Thanks given
    121
    Thanks received
    75
    Rep Power
    47
    Quote Originally Posted by Icandoit View Post
    For the first one, your giving the constructor no arguments where as you should be giving it a Client argument

    Code:
    Client c;
    Hello hello = new Hello(c);

    Generally it's declared in the Client class so you can do this

    Code:
    Hello hello = new Hello(this);
    For the second one it'll probably give you a nullpointer because you haven't instantiated house
    Wasnt new house (this) , tried a week ago already ahaha it was still incompatible type.

    What's instantied lol
    Attached image
    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. Replies: 13
    Last Post: 05-18-2015, 12:01 AM
  2. Really just followed guthans tutorial lol
    By Templer in forum RS 503+ Client & Server
    Replies: 12
    Last Post: 08-03-2008, 06:34 AM
  3. I followed a tutorial nubs
    By Sonic in forum General
    Replies: 1
    Last Post: 03-25-2008, 09:51 PM
  4. Replies: 12
    Last Post: 07-10-2007, 03:08 PM
  5. Sprite Tutorial:Vector Sprite Sig
    By Hiya Nuv in forum Tutorials
    Replies: 4
    Last Post: 03-30-2007, 05:20 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
  •