ID:177097
 
Can somebody help me figure what is wrong here...

if("Yes")
name = input("What is your name?","Name") as text
switch(alert("What team do you want to be on?","Team","Red","Blue"))
if("Red")
team = "Red"
usr.loc = locate(1,1,1)
client.mob = /mob/Red_Team
if("Blue")
team = "Blue"
usr.loc = locate(1,1,1)

I wnat it to set your mob to Red_Team when you choose red team but it doesn't work. I have no errors and i don't c any runtime errors.

Punkrock546
var/mob/M = new /mob/Red_Team
client.mob = M