Jump to content
  • 0
Sign in to follow this  
DirtyBubble

96 errors

Question

i tried to follow a tut that was supposed to do a global announcement when a player got a 99 in a skill. I didn't mess with any of these lines in the tut but after i added the stuff, these errors came.

[code]
src\server\model\players\PlayerAssistant.java:2017: error: ';' expected
public int getLevelForXP(int exp) {
^
src\server\model\players\PlayerAssistant.java:2033: error: illegal start of expr
ession
public boolean addSkillXP(int amount, int skill){
^
src\server\model\players\PlayerAssistant.java:2033: error: ';' expected
public boolean addSkillXP(int amount, int skill){
^
src\server\model\players\PlayerAssistant.java:2033: error: <identifier> expected

public boolean addSkillXP(int amount, int skill){
^
src\server\model\players\PlayerAssistant.java:2033: error: not a statement
public boolean addSkillXP(int amount, int skill){
^
src\server\model\players\PlayerAssistant.java:2033: error: ';' expected
public boolean addSkillXP(int amount, int skill){
^
src\server\model\players\PlayerAssistant.java:2056: error: illegal start of expr
ession
public void resetBarrows() {
^
src\server\model\players\PlayerAssistant.java:2056: error: illegal start of expr
ession
public void resetBarrows() {
^
src\server\model\players\PlayerAssistant.java:2056: error: ';' expected
public void resetBarrows() {
^
src\server\model\players\PlayerAssistant.java:2067: error: illegal start of expr
ession
public static int Barrows[] = {4708, 4710, 4712, 4714, 4716, 4718, 4720,
4722, 4724, 4726, 4728, 4730, 4732, 4734, 4736, 4738, 4745, 4747, 4749, 4751, 4
753, 4755, 4757, 4759};
^
src\server\model\players\PlayerAssistant.java:2067: error: illegal start of expr
ession
public static int Barrows[] = {4708, 4710, 4712, 4714, 4716, 4718, 4720,
4722, 4724, 4726, 4728, 4730, 4732, 4734, 4736, 4738, 4745, 4747, 4749, 4751, 4
753, 4755, 4757, 4759};
^
src\server\model\players\PlayerAssistant.java:2067: error: ';' expected
public static int Barrows[] = {4708, 4710, 4712, 4714, 4716, 4718, 4720,
4722, 4724, 4726, 4728, 4730, 4732, 4734, 4736, 4738, 4745, 4747, 4749, 4751, 4
753, 4755, 4757, 4759};
^
src\server\model\players\PlayerAssistant.java:2067: error: not a statement
public static int Barrows[] = {4708, 4710, 4712, 4714, 4716, 4718, 4720,
4722, 4724, 4726, 4728, 4730, 4732, 4734, 4736, 4738, 4745, 4747, 4749, 4751, 4
753, 4755, 4757, 4759};
^
src\server\model\players\PlayerAssistant.java:2067: error: ';' expected
public static int Barrows[] = {4708, 4710, 4712, 4714, 4716, 4718, 4720,
4722, 4724, 4726, 4728, 4730, 4732, 4734, 4736, 4738, 4745, 4747, 4749, 4751, 4
753, 4755, 4757, 4759};
^
src\server\model\players\PlayerAssistant.java:2067: error: not a statement
public static int Barrows[] = {4708, 4710, 4712, 4714, 4716, 4718, 4720,
4722, 4724, 4726, 4728, 4730, 4732, 4734, 4736, 4738, 4745, 4747, 4749, 4751, 4
753, 4755, 4757, 4759};
^
src\server\model\players\PlayerAssistant.java:2067: error: ';' expected
public static int Barrows[] = {4708, 4710, 4712, 4714, 4716, 4718, 4720,
4722, 4724, 4726, 4728, 4730, 4732, 4734, 4736, 4738, 4745, 4747, 4749, 4751, 4
753, 4755, 4757, 4759};
^
src\server\model\players\PlayerAssistant.java:2068: error: illegal start of expr
ession
public static int Runes[] = {4740,558,560,565};
^
src\server\model\players\PlayerAssistant.java:2068: error: illegal start of expr
ession
public static int Runes[] = {4740,558,560,565};
^
src\server\model\players\PlayerAssistant.java:2068: error: ';' expected
public static int Runes[] = {4740,558,560,565};
^
src\server\model\players\PlayerAssistant.java:2068: error: not a statement
public static int Runes[] = {4740,558,560,565};
^
src\server\model\players\PlayerAssistant.java:2068: error: ';' expected
public static int Runes[] = {4740,558,560,565};
^
src\server\model\players\PlayerAssistant.java:2068: error: not a statement
public static int Runes[] = {4740,558,560,565};
^
src\server\model\players\PlayerAssistant.java:2068: error: ';' expected
public static int Runes[] = {4740,558,560,565};
^
src\server\model\players\PlayerAssistant.java:2069: error: illegal start of expr
ession
public static int Pots[] = {};
^
src\server\model\players\PlayerAssistant.java:2069: error: illegal start of expr
ession
public static int Pots[] = {};
^
src\server\model\players\PlayerAssistant.java:2069: error: ';' expected
public static int Pots[] = {};
^
src\server\model\players\PlayerAssistant.java:2069: error: not a statement
public static int Pots[] = {};
^
src\server\model\players\PlayerAssistant.java:2069: error: ';' expected
public static int Pots[] = {};
^
src\server\model\players\PlayerAssistant.java:2071: error: illegal start of expr
ession
public int randomBarrows() {
^
src\server\model\players\PlayerAssistant.java:2071: error: ';' expected
public int randomBarrows() {
^
src\server\model\players\PlayerAssistant.java:2075: error: illegal start of expr
ession
public int randomRunes() {
^
src\server\model\players\PlayerAssistant.java:2075: error: ';' expected
public int randomRunes() {
^
src\server\model\players\PlayerAssistant.java:2079: error: illegal start of expr
ession
public int randomPots() {
^
src\server\model\players\PlayerAssistant.java:2079: error: ';' expected
public int randomPots() {
^
src\server\model\players\PlayerAssistant.java:2089: error: illegal start of expr
ession
public void drawHeadicon(int i, int j, int k, int l) {
^
src\server\model\players\PlayerAssistant.java:2089: error: illegal start of expr
ession
public void drawHeadicon(int i, int j, int k, int l) {
^
src\server\model\players\PlayerAssistant.java:2089: error: ';' expected
public void drawHeadicon(int i, int j, int k, int l) {
^
src\server\model\players\PlayerAssistant.java:2089: error: <identifier> expected

public void drawHeadicon(int i, int j, int k, int l) {
^
src\server\model\players\PlayerAssistant.java:2089: error: not a statement
public void drawHeadicon(int i, int j, int k, int l) {
^
src\server\model\players\PlayerAssistant.java:2089: error: ';' expected
public void drawHeadicon(int i, int j, int k, int l) {
^
src\server\model\players\PlayerAssistant.java:2089: error: <identifier> expected

public void drawHeadicon(int i, int j, int k, int l) {
^
src\server\model\players\PlayerAssistant.java:2089: error: not a statement
public void drawHeadicon(int i, int j, int k, int l) {
^
src\server\model\players\PlayerAssistant.java:2089: error: ';' expected
public void drawHeadicon(int i, int j, int k, int l) {
^
src\server\model\players\PlayerAssistant.java:2106: error: illegal start of expr
ession
public int getNpcId(int id) {
^
src\server\model\players\PlayerAssistant.java:2106: error: ';' expected
public int getNpcId(int id) {
^
src\server\model\players\PlayerAssistant.java:2106: error: ';' expected
public int getNpcId(int id) {
^
src\server\model\players\PlayerAssistant.java:2117: error: illegal start of expr
ession
public void removeObject(int x, int y) {
^
src\server\model\players\PlayerAssistant.java:2117: error: illegal start of expr
ession
public void removeObject(int x, int y) {
^
src\server\model\players\PlayerAssistant.java:2117: error: ';' expected
public void removeObject(int x, int y) {
^
src\server\model\players\PlayerAssistant.java:2117: error: <identifier> expected

public void removeObject(int x, int y) {
^
src\server\model\players\PlayerAssistant.java:2117: error: not a statement
public void removeObject(int x, int y) {
^
src\server\model\players\PlayerAssistant.java:2117: error: ';' expected
public void removeObject(int x, int y) {
^
src\server\model\players\PlayerAssistant.java:2121: error: illegal start of expr
ession
private void objectToRemove(int X, int Y) {
^
src\server\model\players\PlayerAssistant.java:2121: error: illegal start of expr
ession
private void objectToRemove(int X, int Y) {
^
src\server\model\players\PlayerAssistant.java:2121: error: ';' expected
private void objectToRemove(int X, int Y) {
^
src\server\model\players\PlayerAssistant.java:2121: error: <identifier> expected

private void objectToRemove(int X, int Y) {
^
src\server\model\players\PlayerAssistant.java:2121: error: not a statement
private void objectToRemove(int X, int Y) {
^
src\server\model\players\PlayerAssistant.java:2121: error: ';' expected
private void objectToRemove(int X, int Y) {
^
src\server\model\players\PlayerAssistant.java:2125: error: illegal start of expr
ession
private void objectToRemove2(int X, int Y) {
^
src\server\model\players\PlayerAssistant.java:2125: error: illegal start of expr
ession
private void objectToRemove2(int X, int Y) {
^
src\server\model\players\PlayerAssistant.java:2125: error: ';' expected
private void objectToRemove2(int X, int Y) {
^
src\server\model\players\PlayerAssistant.java:2125: error: <identifier> expected

private void objectToRemove2(int X, int Y) {
^
src\server\model\players\PlayerAssistant.java:2125: error: not a statement
private void objectToRemove2(int X, int Y) {
^
src\server\model\players\PlayerAssistant.java:2125: error: ';' expected
private void objectToRemove2(int X, int Y) {
^
src\server\model\players\PlayerAssistant.java:2129: error: illegal start of expr
ession
public void removeObjects() {
^
src\server\model\players\PlayerAssistant.java:2129: error: illegal start of expr
ession
public void removeObjects() {
^
src\server\model\players\PlayerAssistant.java:2129: error: ';' expected
public void removeObjects() {
^
src\server\model\players\PlayerAssistant.java:2136: error: illegal start of expr
ession
public void handleGlory(int gloryId) {
^
src\server\model\players\PlayerAssistant.java:2136: error: illegal start of expr
ession
public void handleGlory(int gloryId) {
^
src\server\model\players\PlayerAssistant.java:2136: error: ';' expected
public void handleGlory(int gloryId) {
^
src\server\model\players\PlayerAssistant.java:2136: error: ';' expected
public void handleGlory(int gloryId) {
^
src\server\model\players\PlayerAssistant.java:2141: error: illegal start of expr
ession
public void resetVariables() {
^
src\server\model\players\PlayerAssistant.java:2141: error: illegal start of expr
ession
public void resetVariables() {
^
src\server\model\players\PlayerAssistant.java:2141: error: ';' expected
public void resetVariables() {
^
src\server\model\players\PlayerAssistant.java:2152: error: illegal start of expr
ession
public boolean inPitsWait() {
^
src\server\model\players\PlayerAssistant.java:2152: error: ';' expected
public boolean inPitsWait() {
^
src\server\model\players\PlayerAssistant.java:2156: error: illegal start of expr
ession
public void castleWarsObjects() {;
^
src\server\model\players\PlayerAssistant.java:2156: error: illegal start of expr
ession
public void castleWarsObjects() {;
^
src\server\model\players\PlayerAssistant.java:2156: error: ';' expected
public void castleWarsObjects() {;
^
src\server\model\players\PlayerAssistant.java:2161: error: illegal start of expr
ession
public void removeFromCW() {
^
src\server\model\players\PlayerAssistant.java:2161: error: illegal start of expr
ession
public void removeFromCW() {
^
src\server\model\players\PlayerAssistant.java:2161: error: ';' expected
public void removeFromCW() {
^
96 errors
Press any key to continue . . .
[/code]

Here's the tut that I did.....
[url]http://www.************.org/runescape-development/rs2-server/snippets/314303-pi-playername-has-just-reached-99-a.html[/url]

any help?
also, why can't i open any of my .cfg files? i thought notepad was supposed to open those.

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0
well i can tell you part of your problem but i think it would be much better if you used eclipse... first off ;-expected means it already knew that was coming so its not needed. Illegal start of expression means the process was not initiated according to the initiation of the line. I didnt look at this too hard because if you would just download eclipse it would tell you what to fix and basically do it for you... cheers :)

Share this post


Link to post
Share on other sites
  • 0
i put it in eclipse and it doesn't show any errors.

edit: it changed all the places where it says (int blah blah, int blah blah, etc) and just put ; and it got rid of all those errors. i only have 28 errors now. they're all saying the same thing. illegal start of expression public and void. do i change those to int?

[code]
src\server\model\players\PlayerAssistant.java:1487: error: illegal start of expr
ession
public void l*****p; {
^
src\server\model\players\PlayerAssistant.java:1487: error: illegal start of expr
ession
public void l*****p; {
^
src\server\model\players\PlayerAssistant.java:1487: error: ';' expected
public void l*****p; {
^
src\server\model\players\PlayerAssistant.java:1487: error: not a statement
public void l*****p; {
^
src\server\model\players\PlayerAssistant.java:1852: error: illegal start of expr
ession
public void refreshSkill; {
^
src\server\model\players\PlayerAssistant.java:1852: error: illegal start of expr
ession
public void refreshSkill; {
^
src\server\model\players\PlayerAssistant.java:2056: error: illegal start of expr
ession
public void resetBarrows() {
^
src\server\model\players\PlayerAssistant.java:2056: error: illegal start of expr
ession
public void resetBarrows() {
^
src\server\model\players\PlayerAssistant.java:2056: error: ';' expected
public void resetBarrows() {
^
src\server\model\players\PlayerAssistant.java:2089: error: illegal start of expr
ession
public void drawHeadicon; {
^
src\server\model\players\PlayerAssistant.java:2089: error: illegal start of expr
ession
public void drawHeadicon; {
^
src\server\model\players\PlayerAssistant.java:2117: error: illegal start of expr
ession
public void removeObject; {
^
src\server\model\players\PlayerAssistant.java:2117: error: illegal start of expr
ession
public void removeObject; {
^
src\server\model\players\PlayerAssistant.java:2121: error: illegal start of expr
ession
private void objectToRemove; {
^
src\server\model\players\PlayerAssistant.java:2121: error: illegal start of expr
ession
private void objectToRemove; {
^
src\server\model\players\PlayerAssistant.java:2125: error: illegal start of expr
ession
private void objectToRemove2; {
^
src\server\model\players\PlayerAssistant.java:2125: error: illegal start of expr
ession
private void objectToRemove2; {
^
src\server\model\players\PlayerAssistant.java:2129: error: illegal start of expr
ession
public void removeObjects; {
^
src\server\model\players\PlayerAssistant.java:2129: error: illegal start of expr
ession
public void removeObjects; {
^
src\server\model\players\PlayerAssistant.java:2136: error: illegal start of expr
ession
public void handleGlory; {
^
src\server\model\players\PlayerAssistant.java:2136: error: illegal start of expr
ession
public void handleGlory; {
^
src\server\model\players\PlayerAssistant.java:2141: error: illegal start of expr
ession
public void resetVariables; {
^
src\server\model\players\PlayerAssistant.java:2141: error: illegal start of expr
ession
public void resetVariables; {
^
src\server\model\players\PlayerAssistant.java:2152: error: illegal start of expr
ession
public boolean inPitsWait; {
^
src\server\model\players\PlayerAssistant.java:2156: error: illegal start of expr
ession
public void castleWarsObjects; {
^
src\server\model\players\PlayerAssistant.java:2156: error: illegal start of expr
ession
public void castleWarsObjects; {
^
src\server\model\players\PlayerAssistant.java:2161: error: illegal start of expr
ession
public void removeFromCW; {
^
src\server\model\players\PlayerAssistant.java:2161: error: illegal start of expr
ession
public void removeFromCW; {
^
28 errors
Press any key to continue . . .
[/code] Edited by DirtyBubble

Share this post


Link to post
Share on other sites
  • 0
ok i changed them all to int instead of public void and it got rid of the errors. I changed the l*****p to levelUp but it gave me these 100 errors lol
[code]
src\server\model\players\PlayerAssistant.java:1528: error: cannot find symbol
sendFrame126("Your strength level is now "+getLevelForXP(c.playerXP[
skill])+".", 6208);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1532: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1536: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Strength!", "Global C
hat", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1545: error: cannot find symbol
sendFrame126("Your hitpoints level is now "+getLevelForXP(c.playerXP
[skill])+".", 6218);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1549: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1553: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Hitpoints!", "Global
Chat", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1562: error: cannot find symbol
sendFrame126("Your ranged level is now "+getLevelForXP(c.playerXP[sk
ill])+".", 6114);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1566: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1570: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Range!", "Global Chat
", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1579: error: cannot find symbol
sendFrame126("Your prayer level is now "+getLevelForXP(c.playerXP[sk
ill])+".", 6244);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1583: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1587: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Prayer!", "Global Cha
t", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1596: error: cannot find symbol
sendFrame126("Your magic level is now "+getLevelForXP(c.playerXP[ski
ll])+".", 6213);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1600: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1604: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Magic!", "Global Chat
", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1613: error: cannot find symbol
sendFrame126("Your cooking level is now "+getLevelForXP(c.playerXP[s
kill])+".", 6228);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1617: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1621: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Cooking!", "Global Ch
at", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1630: error: cannot find symbol
sendFrame126("Your woodcutting level is now "+getLevelFo
rXP(c.playerXP[skill])+".", 4274);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1634: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1638: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Woodcutting!", "Globa
l Chat", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1647: error: cannot find symbol
sendFrame126("Your fletching level is now "+getLevelForXP(c.playerXP
[skill])+".", 6233);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1651: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1655: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Fletching!", "Global
Chat", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1664: error: cannot find symbol
sendFrame126("Your fishing level is now "+getLevelForXP(c.playerXP[s
kill])+".", 6260);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1668: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1672: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Fishing!", "Global Ch
at", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1681: error: cannot find symbol
sendFrame126("Your firemaking level is now "+getLevelFor
XP(c.playerXP[skill])+".", 4284);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1685: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1689: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Fire Making!", "Globa
l Chat", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1698: error: cannot find symbol
sendFrame126("Your crafting level is now "+getLevelForXP
(c.playerXP[skill])+".", 6265);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1702: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1706: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Crafting!", "Global C
hat", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1715: error: cannot find symbol
sendFrame126("Your smithing level is now "+getLevelForXP
(c.playerXP[skill])+".", 6223);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1719: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1723: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Smithing!", "Global C
hat", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1732: error: cannot find symbol
sendFrame126("Your mining level is now "+getLevelForXP(c
.playerXP[skill])+".", 4438);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1736: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1740: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Mining!", "Global Cha
t", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1749: error: cannot find symbol
sendFrame126("Your herblore level is now "+getLevelForXP(c.playerXP[
skill])+".", 6239);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1753: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1757: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Herblore!", "Global C
hat", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1766: error: cannot find symbol
sendFrame126("Your agility level is now "+getLevelForXP(
c.playerXP[skill])+".", 4279);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1770: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1774: error: cannot find symbol
c2.sendClan("SERVER", c.playerNa
me+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Agility!", "Global Ch
at", 2);

^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1783: error: cannot find symbol
sendFrame126("Your theiving level is now "+getLevelForXP
(c.playerXP[skill])+".", 4264);
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
src\server\model\players\PlayerAssistant.java:1787: error: cannot find symbol
if(getLevelForXP(c.playerXP[skill]) == 99) {
^
symbol: method getLevelForXP(int)
location: class PlayerAssistant
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
100 errors
Press any key to continue . . .
[/code]

Share this post


Link to post
Share on other sites
  • 0
any idea on how to fix these errors?

Share this post


Link to post
Share on other sites
  • 0
[quote name='DirtyBubble']any idea on how to fix these errors?[/QUOTE]

You have pretty common errors.

Why not learn the language a bit first. [URL="http://docs.oracle.com/javase/tutorial/java/"]http://docs.oracle.com/javase/tutorial/java/
[/URL]
It's probably a misplacement of a scope assuming all the methods that it can't find are in the same class and not in a super-class. Edited by Hope

Share this post


Link to post
Share on other sites
  • 0
thanks for the link. i'm looking at it now. I know a little bit about the language. i took one class in college about java and learned a little bit. i looked at every instance of the getLevelForXP and it's only causing a problem in those cases. but not case 0, 1, or 2. only case 3-20. the cases are the skills. im not sure why it wouldnt be a problem in case 0-2 when it's the exact same thing as the other cases. Edited by DirtyBubble

Share this post


Link to post
Share on other sites
  • 0
I figured it out!! Thanks for everyone's help!!

Share this post


Link to post
Share on other sites
Sign in to follow this  

×