Skip to content

Java error!

Featured Replies

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.

Edit your first post to add the FULL error.

 

Btw, this check == 1 can be removed.

 

if (onlinePlayer.isOnline())

is  normally enough.

 

  • Author

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?

Just test it  :)?

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.

  • Author

well i compiled but i have some issius with MySQL so i'm gonna continiou tomorow!

thank y btw...

I'll post tomorow the results!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.