import the class..
import server.model.players.packets.ItemOnPlayer;
|
[PI] Christmas crackers + ItemOnPlayer [PI]
I follow this tutorial and I always get one error.
When I got into my client.java in my client I dont have any of this, Anyone got any ideas?Code:public static final int PACKET_SIZES[] = { 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, // 0 0, 0, 0, 0, 8, 0, 6, 2, 2, 0, // 10 0, 2, 0, 6, 0, 12, 0, 0, 0, 0, // 20 0, 0, 0, 0, 0, 8, 4, 0, 0, 2, // 30 2, 6, 0, 6, 0, -1, 0, 0, 0, 0, // 40 0, 0, 0, 12, 0, 0, 0, 8, 8, 12, // 50 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, // 60 6, 0, 2, 2, 8, 6, 0, -1, 0, 6, // 70 0, 0, 0, 0, 0, 1, 4, 6, 0, 0, // 80 0, 0, 0, 0, 0, 3, 0, 0, -1, 0, // 90 0, 13, 0, -1, 0, 0, 0, 0, 0, 0,// 100 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, // 110 1, 0, 6, 0, 0, 0, -1, 0, 2, 6, // 120 0, 4, 6, 8, 0, 6, 0, 0, 0, 2, // 130 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, // 140 0, 0, 1, 2, 0, 2, 6, 0, 0, 0, // 150 0, 0, 0, 0, -1, -1, 0, 0, 0, 0,// 160 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 170 0, 8, 0, 3, 0, 2, 0, 0, 8, 1, // 180 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, // 190 2, 0, 0, 0, 0, 0, 0, 0, 4, 0, // 200 4, 0, 0, 0, 7, 8, 0, 0, 10, 0, // 210 0, 0, 0, 0, 0, 0, -1, 0, 6, 0, // 220 1, 0, 0, 0, 6, 0, 6, 8, 1, 0, // 230 0, 4, 0, 0, 0, 0, -1, 0, -1, 4,// 240 0, 0, 6, 6, 0, 0, 0 // 250 };
Is the error I get.Code:src\server\model\players\PacketHandler.java:86: cannot find symbol symbol : class ItemOnPlayer location: class server.model.players.PacketHandler packetId[14] = new ItemOnPlayer(); ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Press any key to continue . . .
import the class..
import server.model.players.packets.ItemOnPlayer;
I'm New to coding, could you please explain how? Like import it to my client.java folder?
What's the error you get when it Dced you
read the error
Code:stream.createFrame(14);
Yeah i needed that facepalm haha, I feel stupid but everyone starts somewhere
You've not replaced the packet. Go to the 14th array, and change the '8' to a '4'.
Edit, Nevermind. I didn't read the thread completely.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |