Page 1 of 1

Error when compiling Hide and Seek

Posted: Wed Jan 12, 2011 8:19 am
by admreytor
Hello people, I am implementing the Hide and Seek event in the most current version of Hj, but when compiling it gives this error below

Code: Select all

      [javac] C:\Users\Erick\workspace\L2jServer Lizo\L2_GameServer\java\com\l2jserver\gameserver\model\actor\instance\L2HaSEventManagerInstance.java:54: cannot find symbol    [javac] symbol  : method isRegistered(com.l2jserver.gameserver.model.actor.instance.L2PcInstance)    [javac] location: class com.l2jserver.gameserver.model.olympiad.Olympiad    [javac]             if(Olympiad.getInstance().isRegistered(player))    [javac]                                      ^    [javac] C:\Users\Erick\workspace\L2jServer Lizo\L2_GameServer\java\com\l2jserver\gameserver\model\entity\HideAndSeek.java:261: cannot find symbol    [javac] symbol  : method isRegistered(com.l2jserver.gameserver.model.actor.instance.L2PcInstance)    [javac] location: class com.l2jserver.gameserver.model.olympiad.Olympiad    [javac]                         if(Olympiad.getInstance().isRegistered(p))    [javac]                                                  ^    [javac] 2 errors 

Re: Error when compiling Hide and Seek

Posted: Wed Jan 12, 2011 8:53 am
by jurchiks
change it to OlympiadManager.getInstance().isRegistered...

Also, since the problem is with an event that is shared in this forum, this should have been asked in the topic of that event.

Re: Error when compiling Hide and Seek

Posted: Wed Jan 12, 2011 5:26 pm
by admreytor
I went to put the event in the post but I had to have 20 post, as I am new here I have no right nen 2.

friend

I made the switch and did the same error as below.

Code: Select all

     [javac] Compiling 1529 source files to C:\Users\Erick\workspace\L2jServer Lizo\L2_GameServer\build\classes    [javac] C:\Users\Erick\workspace\L2jServer Lizo\L2_GameServer\java\com\l2jserver\gameserver\model\actor\instance\L2HaSEventManagerInstance.java:54: cannot find symbol    [javac] symbol  : variable OlympiadManager    [javac] location: class com.l2jserver.gameserver.model.actor.instance.L2HaSEventManagerInstance    [javac]             if(OlympiadManager.getInstance().isRegistered(player))    [javac]                ^    [javac] C:\Users\Erick\workspace\L2jServer Lizo\L2_GameServer\java\com\l2jserver\gameserver\model\entity\HideAndSeek.java:261: cannot find symbol    [javac] symbol: variable OlympiadManager    [javac]                         if(OlympiadManager.getInstance().isRegistered(p))    [javac]                            ^    [javac] 2 errors  

Re: Error when compiling Hide and Seek

Posted: Wed Jan 12, 2011 5:35 pm
by admreytor
Thank you got here, I forgot to import the class

of

import com.l2jserver.gameserver.model.olympiad.Olympiad;

to

import com.l2jserver.gameserver.model.olympiad.OlympiadManager;


Thank you for your help

Re: Error when compiling Hide and Seek

Posted: Wed Jan 12, 2011 6:52 pm
by admreytor
one thing I noticed was when the event is started, the processor will use 10% to 100%, would not fix or some type of?