Hello Ninth Legion, thank you for replying, I've done different things and have tried different ways of doing this for example:
this is what my Client.java looks like:
Code:
public void process() {
getPA().sendFrame126("@or2@AncientPk", 640);
getPA().sendFrame126("@whi@Server Info:", 663);
getPA().sendFrame126("@or2@Players Online: @gre@"+PlayerHandler.getPlayerCount()+ " ", 7332);
getPA().sendFrame126("@or2@Player Name: @gre@"+Misc.optimizeText(playerName)+" ", 7333);
getPA().sendFrame126("@or2@Rank: @gre@"+playerRank+"!", 7334);
getPA().sendFrame126("@or2@AncientPk Points: @gre@"+pcPoints+ " ", 7336);
getPA().sendFrame126("@or2@Task: @gre@"+Server.npcHandler.getNpcListName(slayerTask)+ " ", 7383);
getPA().sendFrame126("@or2@XpLock: @gre@"+XpLock+ " ", 7339);
getPA().sendFrame126("@gre@Donator Island", 7338);
getPA().sendFrame126("@gre@Items Kept on Death", 7340);
getPA().sendFrame126("", 7346);
getPA().sendFrame126("@whi@Open Quick Chat", 7341);
getPA().sendFrame126("@or2@Save: @gre@Account", 7342);
getPA().sendFrame126("", 7337);
getPA().sendFrame126("Time Played", 7343);
getPA().sendFrame126("", 7344);
getPA().sendFrame126("", 7345);
getPA().sendFrame126("@gre@" + getPlaytime() + "", 7335);
getPA().sendFrame126("", 7347);
getPA().sendFrame126("", 7348);
But if I change this:
Code:
getPA().sendFrame126("@or2@Rank: @gre@"+playerRank+"!", 7334);
to this:
Code:
getPA().sendFrame126("@or2@Rank: @gre@"+setPlayerRank+"!", 7334);
I get this error:
Code:
src\server\model\players\Client.java:878: error: cannot find symbol
getPA().sendFrame126("@or2@Rank: @gre@"+setPlayerRank+"!", 7334);
^
symbol: variable setPlayerRank
location: class Client
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Press any key to continue . . .
But if I add it to PlayerAssistant.java I get this error:
Code:
src\server\model\players\PlayerAssistant.java:2846: error: cannot find symbol
c.getPA().sendFrame126("@or2@Rank: @gre@"+c.setPlayerRank+"!", 7
334);
^
symbol: variable setPlayerRank
location: variable c of type Client
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Press any key to continue . . .
Thank you.