xdem Posted August 29, 2011 Posted August 29, 2011 I try this but it shows error in eclipse, it reads is as problem if (activeChar.getAppearance().getSex() =0) is this right?
0 adenaman Posted August 29, 2011 Posted August 29, 2011 get_ return you the value set_ chage the value
0 [DEV]DjSt3rios Posted August 29, 2011 Posted August 29, 2011 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.
0 xdem Posted August 29, 2011 Author Posted August 29, 2011 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!!! :*
0 [DEV]DjSt3rios Posted August 29, 2011 Posted August 29, 2011 Working!!!!! Big thanks!!! :* Hehe, you are welcome ;)
Question
xdem
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