Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void UIaddTextArea(int id,String message, String name,int x, int y, int w, int h, String bg, String bb, int a){
- try {
- ByteArrayOutputStream toPacket = new ByteArrayOutputStream();
- DataOutputStream packet = new DataOutputStream(toPacket);
- packet.writeInt(id);
- packet.writeUTF(message);
- packet.writeShort(x);
- packet.writeShort(y);
- packet.writeShort(w);
- packet.writeShort(h);
- packet.writeInt(Integer.parseInt(bg, 16));
- packet.writeInt(Integer.parseInt(bb, 16));
- packet.writeByte(a);
- packet.writeByte(0);
- this.sendPacket(29, 20, toPacket.toByteArray());
- } catch (IOException ex) {
- Logger.getLogger(Client.class.getName()).log(Level.SEVERE, null, ex);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement