ID:145958
 
Code:
        Gender()
switch(input("What gender?") in list("male","female"))
if("male")
usr.icon = 'Costumes.dmi'
usr.icon_state = "batman"
usr.hp = 20
usr.maxhp = 20
usr.loc = locate(32,22,1)
if("female")
usr.icon = 'Costumes.dmi'
usr.icon_state = "cloak"
usr.hp = 20
usr.maxhp = 20
usr.loc = locate(32,22,1)


Problem description:
I don't know whats wrong it was working fine but then i accidently deleted some of it in the Female and know i have constant inconsistant indentations and ive tried reindenting,retyping,etc but no dice. Please help
post the code behind
Gender()
In response to Rky_nick
Rky_nick wrote:
post the code behind
Gender()

could you be a bit more specific
In response to Nick789
Nick789 wrote:
Rky_nick wrote:
post the code behind
Gender()

could you be a bit more specific

He means that you should post the code surrounding the Gender() definition. Also, try deleting all of the whitespace in there and spacing with only tabs, as many people often make the mistake of using spaces.

Hiead