Help with compile error

Joined
Aug 28, 2011
Messages
3
Reaction score
0
C:\Users\PimpDatToshiba\Desktop\Source folder\src\net\channel\handler\TakeDamageHandler.java:208: error: method damagePlayer in class MaplePacketCreator cannot be applied to given types;
player.getMap().broadcastMessage(player, MaplePacketCreator.damagePlayer(damagefrom, monsteridfrom, player.getId(), damage, fake, direction, is_pgmr, pgmr, is_pg, oid, pos_x, pos_y), false);
required: int,int,int,int,int,int,int,int,boolean,int,boolean,int,int,int
found: int,int,int,int,int,int,boolean,int,boolean,int,int,int
reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Someone want to help me?

[email protected] = msn
 
Last edited:
Seems that you tried to import some packages that don't exist (maybe you deleted them or you copied skillparse.java from another source into yours). Look at your skillparse.java and see for yourself what packages you need to import.
 
Upvote 0
Seems that you tried to import some packages that don't exist (maybe you deleted them or you copied skillparse.java from another source into yours). Look at your skillparse.java and see for yourself what packages you need to import.

Ty, now I have this


C:\Users\PimpDatToshiba\Desktop\Source folder\src\net\channel\handler\TakeDamageHandler.java:208: error: method damagePlayer in class MaplePacketCreator cannot be applied to given types;
player.getMap().broadcastMessage(player, MaplePacketCreator.damagePlayer(damagefrom, monsteridfrom, player.getId(), damage, fake, direction, is_pgmr, pgmr, is_pg, oid, pos_x, pos_y), false);
required: int,int,int,int,int,int,int,int,boolean,int,boolean,int,int,int
found: int,int,int,int,int,int,boolean,int,boolean,int,int,int
reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
I'm pretty new @ java
 
Last edited:
Upvote 0
Ok I'm glad I could help you out with that one error; for that second one I'm not really sure what you should do but it seems that you have forgotten 2 integers at your takeDamageHandler.Java line 208.
 
Upvote 0
Ok I'm glad I could help you out with that one error; for that second one I'm not really sure what you should do but it seems that you have forgotten 2 integers at your takeDamageHandler.Java line 208.

LOL so what do I do

and ty so much for the first error :D

I deleted the line and it worked... Idk what it is for XD
 
Upvote 0
Back