Jump to content
  • 0

Java error!


Question

Posted

Hey mxcrs!

I tried to add this mod in my server:

http://www.maxcheaters.com/forum/index.php?topic=78081.0

 

but i got an error here:

+                           if (onlinePlayer.isOnline() == 1)

 

why is that guys?

i tried to compile and it faild because of this error!

please help me!

 

My server is l2jserver/freya.

5 answers to this question

Recommended Posts

  • 0
Posted

Edit your first post to add the FULL error.

 

Btw, this check == 1 can be removed.

 

if (onlinePlayer.isOnline())

is  normally enough.

 

well i did it and the error is gone!

but, is it goind to work?

  • 0
Posted

When you do this sort of check you haven't to put == 1, because isOnline give back his own answer.

 

Well if it's not clear, just test and if it works be happy... Lol.

 

If not, edit your first post and add the error.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..