Thread: PI Dwarf cannon

Results 1 to 3 of 3
  1. #1 PI Dwarf cannon 
    Registered Member
    Join Date
    May 2012
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    i was following this tut.
    http://www.rune-server.org/runescape...nnon-base.html
    and i get these errors.
    Code:
    src\server\model\players\Player.java:39: cannot find symbol
    symbol  : class Objects
    location: class server.model.players.Player
            public Objects oldCannon;
                   ^
    src\server\model\players\ActionHandler.java:23: cannot find symbol
    symbol  : class Objects
    location: class server.model.players.ActionHandler
                    Objects OBJECT = new Objects(id, x, y, 0, 0, 10, 0);
                    ^
    src\server\model\players\ActionHandler.java:23: cannot find symbol
    symbol  : class Objects
    location: class server.model.players.ActionHandler
                    Objects OBJECT = new Objects(id, x, y, 0, 0, 10, 0);
                                         ^
    src\server\model\players\ActionHandler.java:33: cannot find symbol
    symbol  : class Objects
    location: class server.model.players.ActionHandler
                    Objects OBJECT = new Objects(id, x, y, 0, face, 10, 0);
                    ^
    src\server\model\players\ActionHandler.java:33: cannot find symbol
    symbol  : class Objects
    location: class server.model.players.ActionHandler
                    Objects OBJECT = new Objects(id, x, y, 0, face, 10, 0);
                                         ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    5 errors
    Press any key to continue . . .
    This is the code for action handler

    Code:
    public void createAnObject(Client c, int id, int x, int y) {
    		Objects OBJECT = new Objects(id, x, y, 0, 0, 10, 0);
    		if(id == -1) {
    			removeObject(OBJECT);
    		} else {
    			addObject(OBJECT);
    		}
    		Server.objectHandler.placeObject(OBJECT);
    	}
    
    	public void createAnObject(Client c, int id, int x, int y, int face) {
    		Objects OBJECT = new Objects(id, x, y, 0, face, 10, 0);
    		if(id == -1) {
    			removeObject(OBJECT);
    		} else {
    			addObject(OBJECT);
    		}
    		Server.objectHandler.placeObject(OBJECT);
    	}
    Reply With Quote  
     

  2. #2  
    Project-Tenex Developer Uzumaki's Avatar
    Join Date
    Oct 2011
    Posts
    130
    Thanks given
    27
    Thanks received
    6
    Rep Power
    17
    I think you need to add one of the object classes to your imports
    Quote Originally Posted by Grim Reaper View Post


    I need help with this..... Does anyone know how to fix this.
    You serious..?
    __________________________________________________ __________________________________________________ _________________________________________
    Quote Originally Posted by SeanQB View Post
    Thanks! And the error in your sig shouldn't matter when compiling. I get the same thing all the time and my files still work.
    Quote Originally Posted by SeanQB View Post
    What's so funny?
    Reply With Quote  
     

  3. #3  
    Server Developer
    braybray125's Avatar
    Join Date
    Jun 2012
    Age
    33
    Posts
    71
    Thanks given
    77
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by I Win View Post
    I think you need to add one of the object classes to your imports
    Yeah that's what you have to do. Mine works.
    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. dwarf cannon
    By death333 in forum Help
    Replies: 7
    Last Post: 10-09-2011, 12:41 PM
  2. Dwarf Cannon
    By adrijusxx in forum Help
    Replies: 4
    Last Post: 09-04-2011, 12:13 PM
  3. dwarf cannon pi
    By dragonflame in forum Help
    Replies: 5
    Last Post: 04-05-2011, 11:56 PM
  4. New Dwarf Cannon
    By Zro. in forum Media
    Replies: 9
    Last Post: 03-13-2011, 03:22 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
  •