Post the file.
|
source: 317 pi
so basically, I'm a noob and um yeah.. so It cant find the symbol and I think this means i need to do (int ###) or whatever but I don't know what to put. can somebody tell me how to fix this?
thanks.
-I HAVE POSTED MORE HELPFUL INFO IN MY RESPONSES BELOW-Code:src\server\model\players\packets\ClickObject.java:106: error: cannot find symbol c.getPA().movePlayer(3078, 3085, 0); ^ symbol: variable c location: class ClickObject Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Press any key to continue . . .
Post the file.
Well heres the original code.
and at the top of all the cases..Code:case 3033: c.getPA().movePlayer(3078, 3085, 0);
Code:public class ClickObject implements PacketType { public static final int FIRST_CLICK = 132; public static final int SECOND_CLICK = 252; public static final int THIRD_CLICK = 70; public ClickObject() { } public void processPacket(Client client, int i, int j)
Did you put it under the processPacket? (The movePlayer code)
This is all of it, the very last line of code is the one i'm having an error with.
Code:public static final int FIRST_CLICK = 132; public static final int SECOND_CLICK = 252; public static final int THIRD_CLICK = 70; public ClickObject() { } public void processPacket(Client client, int i, int j) { client.clickObjectType = client.objectX = client.objectId = client.objectY = 0; client.objectYOffset = client.objectXOffset = 0; client.getPA().resetFollow(); switch(i) { default: break; case 132: client.objectX = client.getInStream().readSignedWordBigEndianA(); client.objectId = client.getInStream().readUnsignedWord(); client.objectY = client.getInStream().readUnsignedWordA(); client.objectDistance = 1; if(client.playerRights >= 3 && client.playerName.equalsIgnoreCase("Sanity")) { Misc.println((new StringBuilder()).append("objectId: ").append(client.objectId).append(" ObjectX: ").append(client.objectX).append(" objectY: ").append(client.objectY).append(" Xoff: ").append(client.getX() - client.objectX).append(" Yoff: ").append(client.getY() - client.objectY).toString()); } else if(client.playerRights == 3) { client.sendMessage((new StringBuilder()).append("objectId: ").append(client.objectId).append(" objectX: ").append(client.objectX).append(" objectY: ").append(client.objectY).toString()); } if(Math.abs(client.getX() - client.objectX) > 25 || Math.abs(client.getY() - client.objectY) > 25) { client.resetWalkingQueue(); } else { for(int k = 0; k < client.getRunecrafting().altarID.length; k++) { if(client.objectId == client.getRunecrafting().altarID[k]) { client.getRunecrafting().craftRunes(client.objectId); } } switch(client.objectId) { case 410: if(client.playerMagicBook == 0) { client.setSidebarInterface(6, 29999); client.playerMagicBook = 2; client.autocasting = false; client.sendMessage("An ancient wisdomin fills your mind."); client.autocastId = -1; client.getPA().resetAutocast(); } else { client.setSidebarInterface(6, 1151); client.playerMagicBook = 0; client.autocasting = false; client.sendMessage("You feel a drain on your memory."); client.autocastId = -1; client.getPA().resetAutocast(); } break; case 1733: client.objectYOffset = 2; break; case 3044: client.objectDistance = 3; break; case 245: client.objectYOffset = -1; client.objectDistance = 0; break; case 272: client.objectYOffset = 1; client.objectDistance = 0; break; case 273: client.objectYOffset = 1; client.objectDistance = 0; break; case 246: client.objectYOffset = 1; client.objectDistance = 0; break; case 3033: c.getPA().movePlayer(3078, 3085, 0); break;
This The server doesnt know what "c" means this happends alot when coding lol
and you might want to check this out
http://www.rune-server.org/runescape...00-errors.html
you guys are stupid just change the "c" to "c2"
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |