Jump to content
  • 0

Java error!


+cs.tribal

Question

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.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Edit your first post to add the FULL error.

 

Btw, this check == 1 can be removed.

 

if (onlinePlayer.isOnline())

is  normally enough.

 

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...