how to add two genders to kin

Results 1 to 3 of 3
  1. #1
    Apprentice omgbobbyishere is offline
    MemberRank
    Nov 2012 Join Date
    13Posts

    how to add two genders to kin

    So I have a third gender and I'm wondering how I put

    if(cm.getChar().getGender() == 0 and 2 ) {

    I can't do

    if(cm.getChar().getGender() >= 0 ) {

    because I needa leave female out.

    If anyone can help thanks.


  2. #2
    Ass > Tits Lapje is offline
    MemberRank
    Feb 2009 Join Date
    nullLocation
    1,879Posts

    Re: how to add two genders to kin

    Male = 0
    Female = 1
    Trans (or whatever) = 2

    Code:
    if (cm.getPlayer().getGender() == 0 || cm.getPlayer().getGender == 2)
    || is the OR operator. It basically says, if this statement is true OR this statement is true, then do this..

  3. #3
    Apprentice omgbobbyishere is offline
    MemberRank
    Nov 2012 Join Date
    13Posts

    Re: how to add two genders to kin

    thanks man. really appreciate it.



Advertisement