ID:940843
 
Problem description: At line 17, I keep getting a 'bad argument definition' error, and no matter how much I try fixing the mistakes before line 17, it only seems to be moving the problem elsewhere. Help please, I was getting the hang of coding for abit before stumblinb on yet another problem, still a rookie.
Code:
world
loop_checks=0
mob
Login()
usr.icon_state = input("What gender?") in list("Male","Female");
if("Male")
icon = "Dark Male.dmi"
icon_state = ""
else if("Female")
icon = "New Tan Female.dmi"
icon_state = ""
usr.name = input(("Choose a name for your character."),"")
Key_Check()
Natural_Recovery()
Time_Check()
usr.Move (locate(1,1,1))
Stat()
statpanel("Stats")
stat("")
stat("Name: [usr.name]")
stat("Key: [usr.key]")
stat("Powerlevel", Power)
stat("Energy", Stamina)
stat("Strength", Strength)
stat("Durability", Endurance)
if(usr.Admin == 1)
stat("Admin Ability ACTIVE")
statpanel("Admin")
stat("Coordinates ([usr.x],[usr.y],[usr.z])")
stat("Year","([Year])")
else if(Admin == 0)
stat("Admin Ability INACTIVE")


Indent the "usr.icon_state = input("What gender?") in list("Male","Female");" line and use a switch() statement to compare the value, or an if(icon_state == "") statement.
And it'd be better to avoid usr in procs.