Jump to content
  • 0
Sign in to follow this  
Wajdi

[PI]Important help.

Question

I've added Dexter Morgan's skill system and compiled with no errors but I've added his firemaking system and had some errors, fixed them and now got those:
[CODE]src\server\model\players\skills\Firemaking.java:13: error: cannot find symbol
private static Tiles currentTile;
^
symbol: class Tiles
location: class Firemaking
src\server\model\players\Client.java:57: error: constructor Firemaking in class
Firemaking cannot be applied to given types;
private Firemaking firemaking = new Firemaking(this);
^
required: no arguments
found: Client
reason: actual and formal argument lists differ in length
src\server\model\players\skills\Firemaking.java:45: error: cannot find symbol
if(c.playerIsWoodcutting) {
^
symbol: variable playerIsWoodcutting
location: variable c of type Client
src\server\model\players\skills\Firemaking.java:46: error: cannot find symbol
Woodcutting.resetWoodcutting(c);
^
symbol: method resetWoodcutting(Client)
location: class Woodcutting
src\server\model\players\skills\Firemaking.java:92: error: cannot find symbol
currentTile = new Tiles(c.absX - 1, c.ab
sY, c.heightLevel);
^
symbol: class Tiles
location: class Firemaking
src\server\model\players\skills\Firemaking.java:94: error: package WalkingCheck
does not exist
if(!WalkingCheck.tiles.containsKey(curre
ntTile.getH() << 28 | currentTile.getX() << 14 | currentTile.getY())){
^
src\server\model\items\UseItem.java:257: error: cannot find symbol
c.getFiremaking().checkLogType(itemUsed, useWith);
^
symbol: method checkLogType(int,int)
location: class Firemaking
7 errors
Press any key to continue . . .[/CODE]

I added import of Tile.java but still this...
Help would be really appreciated and user will be thanked...
Please help me..

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0
If you added all files and followed every step from the tutorial, you're probally missing imports which is why you got some of these errors, then for Firemaking firemaking = new Firemaking(this); change it to Firemaking firemaking = new Firemaking();, Make sure you you have all your imports, if you have Eclipse it will tell you if you're missing imports for certaint cannot find symbol errors.

Share this post


Link to post
Share on other sites
  • 0
Brentbrent you're pretty stupid, you can see I got errors in class 'Firemaking.java' so how I couldn't have firemaking.java?
Thank you rambo da gr5 about the new firemaking(this) error, I will try that fix.
And I do got all the imports.

Share this post


Link to post
Share on other sites
  • 0
appears everything you added to do with that firemaking has given you a error.. hmm

Share this post


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

×