Jump to content
  • 0

how can i define the sex of a player? on Java


Question

Posted

I try this but it shows error in eclipse, it reads is as problem

 

if (activeChar.getAppearance().getSex() =0)

 

is this right?

6 answers to this question

Recommended Posts

  • 0
Posted

No it's not. getSex returns a boolean value, which means it's true or false...

so, you should write

activeChar.getAppearance().getSex() == true/false

 

false = male and true = female.

 

I hope I helped.

 

Working!!!!! Big thanks!!! :*

Guest
This topic is now closed to further replies.
×
×
  • Create New...