anyone?
|
I made a basic interface that shows some lines of text but it wont let me change the text server sided. Like I want to add the text thats already on it + getPlayerCount so it shows how many players are in the minigame.
This is my code on the client for the interface:
public static void desertWait(RSFont[] tda) {
RSInterface RSinterface = addTab(30800);
addText(30801, "@red@Bad Company Members:", 0xCCCBCB, false, true, 52, tda, 1);
addText(30802, "@red@Black Ops Members:", 0x5BD230, false, true, 52, tda, 1);
addText(30803, "Match Starts In:", 0xDED36A, false, true, 52, tda, 1);
int last = 3;
RSinterface.children = new int[last];
RSinterface.childX = new int[last];
RSinterface.childY = new int[last];
setBounds(30801, 15, 12, 0,RSinterface);
setBounds(30802, 15, 30, 1,RSinterface);
setBounds(30803, 15, 48, 2,RSinterface);
}
and this is my code on my server to bring up the interface:
The problem is that only the text from the client itself comes up and the "+badCompanyWait" does not which is supposed to show playercount.public void setDesertInterface() {
for (int j = 0; j < PlayerHandler.players.length; j++) {
if (PlayerHandler.players[j] != null) {
if (PlayerHandler.players[j].inDesertWait()) {
Client c = (Client) PlayerHandler.players[j];
c.getPA().sendFrame126(""+badCompanyWait, 30801);
c.getPA().sendFrame126(""+blackOpsWait, 30802);
c.getPA().sendFrame126(""+gameStartTimer, 30803);
c.getPA().walkableInterface(30800);
}
}
}
}
anyone?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |