ID:145576
 
Code:
mob
blue
red
var
color
Login()
var/create = input(src,"Pick your Color") in list("RED","BLUE","NONE")
switch(color)
if("RED")
usr.color = 1
if("BLUE")
usr.color = 2
if("None")
src.Logout()


Problem description:

im making a small board game...wont telll...but i am tryingg to make it when you login it asks you color(class) i know how it should work but i get wierd errors:

board game.dm:147:error:list:undefined proc
board game.dm:148:error::invalid expression
board game.dm:147:create :warning: variable defined but not used


can someone help me with this
> mob
> blue
> red
> var
> color
> Login()
> var/create = input(src,"Pick your Color") in list("RED","BLUE","NONE")
> switch(color)
> if("RED")
> usr.color = 1
> if("BLUE")
> usr.color = 2
> if("None")
> src.Logout()
>

Switch is to far out