Mrcastiel 1,875 Posted December 16, 2016 Report Share Posted December 16, 2016 Purpose: To show you how to write to interfaces. Classes Modified: I used Command.java to use a command to show me. Step 1: Open Command.java Add a new command: else if(cmd[0].equals("ti") && p.rights >= 2) { String string = "line"; int inter = Integer.parseInt(cmd[1]); int child = Integer.parseInt(cmd[2]); p.frames.showInterface(p, inter); for(int i = 0; i < child; i++) { p.frames.setString(p, string+i, inter, i); } } ^^ That will show you the interface with the text "line" for each childId. NOW: If you client crashes... Look on it: You should see something like this: Error: Class68_Sub20_Sub15:64 PacketParser:1051 Class14:33 Class90:143 client:78 4 Applet_Sub1:485 Applet_Sub1:156 java.lang.Thread.run | java.lang.ArrayIndexOut OfBoundsException: 107 | T2 - 179,179,179 - 12,3163,3484 - 108,105,110,101,49,48 ,55,0,0,107,0,-100, Where it says java.lang.ArrayIndexOutOfBoundsException: 107 thats where you gotta look for the total lines to write to. The number 107 is the number of lines writable. Try it: ::ti 156 107 Credits: 60 -1 Link to comment Share on other sites More sharing options...
OfficialLegend 12 Posted February 15, 2017 Report Share Posted February 15, 2017 Nice snippet man! Link to comment Share on other sites More sharing options...
QueenEmsy 0 Posted April 13, 2022 Report Share Posted April 13, 2022 Really nice snippet! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now