TouchAndDie Posted April 16, 2012 Share 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 Link to comment Share on other sites More sharing options...
0 Bleadd Posted April 16, 2012 Share Posted April 16, 2012 You get warning because you get an argument that is never used in this method. Link to comment Share on other sites More sharing options...
0 TouchAndDie Posted April 16, 2012 Author Share Posted April 16, 2012 You get warning because you get an argument that is never used in this method. how can i fix it ? Link to comment Share on other sites More sharing options...
0 Bleadd Posted April 16, 2012 Share Posted April 16, 2012 try this.. public final L2Object[] getTargetList(boolean L2Character) (don't tested..) Link to comment Share on other sites More sharing options...
0 TouchAndDie Posted April 16, 2012 Author Share Posted April 16, 2012 try this.. public final L2Object[] getTargetList(boolean L2Character) (don't tested..) nope.. now i get more warnings :( Link to comment Share on other sites More sharing options...
0 Bleadd Posted April 16, 2012 Share Posted April 16, 2012 and what's the warning? Link to comment Share on other sites More sharing options...
0 adenaman Posted April 16, 2012 Share Posted April 16, 2012 from l2jserver public final L2Object[] getTargetList(L2Character activeChar, boolean onlyFirst) { ... } Link to comment Share on other sites More sharing options...
0 Tryskell Posted April 16, 2012 Share Posted April 16, 2012 As adenaman showed, you completely messed parameters. Closed. Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
7 answers to this question
Recommended Posts