Thread: 4 errors

Results 1 to 7 of 7
  1. #1 4 errors 
    Registered Member
    Join Date
    Feb 2010
    Posts
    349
    Thanks given
    10
    Thanks received
    5
    Rep Power
    1
    help please

    Code:
    .\src\Client.java:26: cannot find symbol
    symbol  : variable Cooking
    location: class Server
                                            Server.Cooking.secondStage(cookingAmount
    , playerId);
                                                  ^
    .\src\Client.java:7675: cannot find symbol
    symbol  : variable itemID
    location: class Client
                            Server.Cooking.firstStage(itemID, c.playerId);
                                                      ^
    .\src\Client.java:7675: cannot find symbol
    symbol  : variable c
    location: class Client
                            Server.Cooking.firstStage(itemID, c.playerId);
                                                              ^
    .\src\Client.java:7675: cannot find symbol
    symbol  : variable Cooking
    location: class Server
                            Server.Cooking.firstStage(itemID, c.playerId);
                                  ^
    4 errors
    Press any key to continue . . .
     

  2. #2  
    🍕

    Linus's Avatar
    Join Date
    Dec 2008
    Age
    31
    Posts
    2,779
    Thanks given
    974
    Thanks received
    411
    Rep Power
    0
    As shoes said. And no.. The compiler tells you the errors, therefor you dont know java if you ask what the problem is.

    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝

    ╠╬╬╬╣



     

  3. #3  
    Fuck yeah!
    Mergim's Avatar
    Join Date
    May 2009
    Age
    31
    Posts
    2,309
    Thanks given
    218
    Thanks received
    187
    Rep Power
    1619
    Quote Originally Posted by Shoes View Post
    I gotz a hint. Learn java or remove the tut you used
    I gotz a hint. Either try to help or don't post at all..

    @OP; Base?
     

  4. #4  
    Registered Member
    Join Date
    Feb 2010
    Posts
    349
    Thanks given
    10
    Thanks received
    5
    Rep Power
    1
    delta cleaned by teh johnny and thanks i asked for help not anything else and if the compiler says it doesnt mean ill understand it im confused about the errors
     

  5. #5  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    In Server.java add this

    Code:
    Private static final Cooking cooking = new Cooking();
    
    public Cooking getCooking() {
            return cooking;
    }
    change your methods to these.

    At Line 26 In Client.java Change It Too This.
    Code:
    Server.getCooking().secondStage(cookingAmount, playerId);
    At Line 7675 In Client.java Change It Too This.
    Code:
    Server.getCooking().firstStage(itemId, playerId);
    You will still have 1 error so post the method where line 7675 Is Found.
     

  6. #6  
    Registered Member
    Join Date
    Feb 2010
    Posts
    349
    Thanks given
    10
    Thanks received
    5
    Rep Power
    1
    here is the method
    Code:
    case 192:
    			// Use an item on object
    			junk = inStream.readSignedWordBigEndianA();
    			int UsedOnObjectID = inStream.readUnsignedWordBigEndian();
    			int UsedOnY = inStream.readSignedWordBigEndianA();
    			int ItemSlot = (inStream.readSignedWordBigEndianA() - 128);
    			int UsedOnX = inStream.readUnsignedWordBigEndianA();
    			int ItemID = inStream.readUnsignedWord();
    			Server.getCooking().firstStage(itemId, playerId);
    			if (!playerHasItem(ItemID))
    				break;
    			if (!antiHax())
    				break;
    and here is the error

    Code:
    .\src\Server.java:62: <identifier> expected
            Private static final Cooking cooking = new Cooking();
                   ^
    1 error
    Press any key to continue . . .
     

  7. #7  
    Registered Member
    Join Date
    Feb 2010
    Posts
    349
    Thanks given
    10
    Thanks received
    5
    Rep Power
    1
    anyone know?
     


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
  •