Error when compiling Hide and Seek

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
admreytor
Posts: 10
Joined: Mon Dec 20, 2010 2:16 am

Error when compiling Hide and Seek

Post 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 
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Error when compiling Hide and Seek

Post 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.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
admreytor
Posts: 10
Joined: Mon Dec 20, 2010 2:16 am

Re: Error when compiling Hide and Seek

Post 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  
admreytor
Posts: 10
Joined: Mon Dec 20, 2010 2:16 am

Re: Error when compiling Hide and Seek

Post 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
admreytor
Posts: 10
Joined: Mon Dec 20, 2010 2:16 am

Re: Error when compiling Hide and Seek

Post 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?
Post Reply