TouchAndDie Posted April 16, 2012 Posted April 16, 2012 i found something useless on l2jserver forum and i can't figured out why i get warning :-? error: Syntax error on token "L2Character", VariableDeclaratorId expected after this token code: public final L2Object[] getTargetList(L2Character, boolean L2Character) { L2Object[] targetList = handler.getTargetList(this, activeChar, onlyFirst, target); if (activeChar.isParticipating() && skill.isOffensive()) { for (int i = 0;i < targetList.length;++ i) { if (tagetList.activeChar.TvTEventTeam[2] == TARGET_ARRAY.TvTEventTeam[2]); targetList = null; } } } this code is in model->l2skill.java
0 Bleadd Posted April 16, 2012 Posted April 16, 2012 You get warning because you get an argument that is never used in this method.
0 TouchAndDie Posted April 16, 2012 Author Posted April 16, 2012 You get warning because you get an argument that is never used in this method. how can i fix it ?
0 Bleadd Posted April 16, 2012 Posted April 16, 2012 try this.. public final L2Object[] getTargetList(boolean L2Character) (don't tested..)
0 TouchAndDie Posted April 16, 2012 Author Posted April 16, 2012 try this.. public final L2Object[] getTargetList(boolean L2Character) (don't tested..) nope.. now i get more warnings :(
0 adenaman Posted April 16, 2012 Posted April 16, 2012 from l2jserver public final L2Object[] getTargetList(L2Character activeChar, boolean onlyFirst) { ... }
0 Tryskell Posted April 16, 2012 Posted April 16, 2012 As adenaman showed, you completely messed parameters. Closed.
Question
TouchAndDie
i found something useless on l2jserver forum and i can't figured out why i get warning :-?
error: Syntax error on token "L2Character", VariableDeclaratorId expected after this token
code:
this code is in model->l2skill.java
7 answers to this question
Recommended Posts