ID:263067
 
mob
Login()
..()
switch(input("What is your sex?","Sex") in list("Male","Female"))
if("Male") src.icon = 'mob.dmi'
else src.icon = 'female.dmi'
Logout()
world << "[usr] has logged out!"
usr << "You have logged out!"
del usr


obj/Start
mob/icon = 'start.dmi'
Click()
src.loc=locate(1,1,2)
src.icon = 'mob.dmi'
world << "[usr] has logged in!"

obj/Quit
icon = 'quit.dmi'
icon_state = "quit"
Click()
del usr


Login Screen Demo.dm:4:error:"What is your sex?":duplicate definition
Login Screen Demo.dm:4:error:"Sex":duplicate definition
Login Screen Demo.dm:4:error::duplicate definition
Login Screen Demo.dm:4:error::duplicate definition
Login Screen Demo.dm:4:error::duplicate definition
Login Screen Demo.dm:4:error:"Male":duplicate definition
Login Screen Demo.dm:4:error:"Female":duplicate definition
Login Screen Demo.dm:4:error::duplicate definition
Login Screen Demo.dm:4:error::empty type name (indentation error?)
Login Screen Demo.dm:5:error::duplicate definition
Login Screen Demo.dm:5:error:"Male":value not allowed here
Login Screen Demo.dm:5:error:src.icon:undefined var
Login Screen Demo.dm:5:error::duplicate definition
Login Screen Demo.dm:6:error:src.icon:undefined var

Login Screen Demo.dmb - 14 errors, 0 warnings (double-click on an error to jump to it)

A lot isnt it.. can anyone help lol



mob
> Login()
> ..()
> switch(input("What is your sex?","Sex") in list("Male","Female"))
> if("Male") src.icon = 'mob.dmi'
> else src.icon = 'female.dmi'


Try that might fix a few problems
In response to A.T.H.K
Erm...also...the parent is indented wrong lol. And I'm pretty sure you call the parent after doing all that at login...
In response to Pyro_dragons
oopz didn't notice that was rushing to get to lunch
In response to A.T.H.K
Whats the parent?
In response to New Designer
..()
In response to Mysame
Login Screen Demo.dmb - 20 errors, 0 warnings (double-click on an error to jump to it)

Nothing helped.. just worsed..
In response to New Designer
New Designer wrote:
Login Screen Demo.dmb - 20 errors, 0 warnings (double-click on an error to jump to it)

Nothing helped.. just worsed..

mob
Login()
..()
switch(input("What is your sex?","Sex") in list("Male","Female"))
if("Male") src.icon = 'mob.dmi'
else src.icon = 'female.dmi'
Logout()
world << "[usr] has logged out!"
usr << "You have logged out!"
del usr


obj/Start
mob/icon = 'start.dmi'
Click()
src.loc=locate(1,1,2)
src.icon = 'mob.dmi'
world << "[usr] has logged in!"

obj/Quit
icon = 'quit.dmi'
icon_state = "quit"
Click()
del usr

obj/Blackness
icon = 'black.dmi'


SORRY!! didnt mean to post twice!!

And also: Which procs would be useful for letting a player choose his race or class? Please dont say read the DM cause i have but i dont get that thing.. and dont flame me either..
In response to New Designer
mob
Login()
switch(input(src,"What is your sex?","Sex") in list("Male","Female"))
if("Male") src.icon = 'mob.dmi'
else src.icon = 'female.dmi'
..()


the parent proc AFTER everything else in the Login() proc.

EDIT.

Your tabbing is incorrect. Terribly incorrect.

mob
Login()
switch(input(src,"What is your sex?","Sex") in list("Male","Female"))
if("Male") src.icon = 'mob.dmi'
else src.icon = 'female.dmi'
..()
Logout()
world << "[src] has logged out!"
src << "You have logged out!"
del src


obj/Start
icon = 'start.dmi'
Click()
usr.loc=locate(1,1,2)
usr.icon = 'mob.dmi'
world << "[usr] has logged in!"

obj/Quit
icon = 'quit.dmi'
icon_state = "quit"
Click()
del usr

obj/Blackness
icon = 'black.dmi'
In response to Crzylme
WELL, that helped a lil but i still get this..
map.dmp:10:error: undefined type: /obj/Start/mob
map.dmp:10:error: undefined type: /obj/Start/mob
map.dmp:10:error: unknown type
map.dmp:10:error: unknown type
PROBLEM SOLVED TY