switch(input("What Is Your Gender") in list ("Male","Female"))
if ("Male")
usr.genders = "Gender"
if ("Female")
usr.genders = "Female"
Problem description:k when i use this code it sets my gender as genders and idk why
ID:146124
![]() Aug 30 2005, 1:36 pm
|
|
Code:
switch(input("What Is Your Gender") in list ("Male","Female")) Problem description:k when i use this code it sets my gender as genders and idk why |
If you are gonna give advice, give good advice.
switch(input(src,"What Is Your Gender") in list ("Male","Female")) // * *Since Lou switched everything to src, might as well remain consistant. Some procs like: oview(), view(),input(), viewers(), oviewers(), range(), and orange() default to usr. You have to set the reference to the mob, which would be src in this case. Just so you know, you don't need to use src, if it isn't a proc. It's a good idea to use src, or reference the mob in a proc, but sometimes in procs like Click, and Dblclick you don't need to. ** There is a build-in-var called mob.gender. You can use that instead, which is probably what you meant to do. |
OOps...i forgot the switch thingy...dumbass advice on my part. My bad. Sry bout that. And the gender built in thing too
|
lol i cant rember but i looked it up and found out about it and now i can use that for some ideas i had befor but couldnt do because i didnt no about this
|
Why do you have a switch here?
gender = input(src, "What is your gender?") in list ("male", "female") Also, if you do use the gender variable \he macros and such may only work with lowercase genders. |
Oh, dont use usr, use src cuz here id think usr would work. (or does it? I stay away from usr in Login crap)