As shoes said. And no.. The compiler tells you the errors, therefor you dont know java if you ask what the problem is.
|
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 . . .
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
In Server.java add this
change your methods to these.Code:Private static final Cooking cooking = new Cooking(); public Cooking getCooking() { return cooking; }
At Line 26 In Client.java Change It Too This.At Line 7675 In Client.java Change It Too This.Code:Server.getCooking().secondStage(cookingAmount, playerId);You will still have 1 error so post the method where line 7675 Is Found.Code:Server.getCooking().firstStage(itemId, playerId);
here is the method
and here is the errorCode: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;
Code:.\src\Server.java:62: <identifier> expected Private static final Cooking cooking = new Cooking(); ^ 1 error Press any key to continue . . .
anyone know?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |