ID:144769
 
Code:
mob
proc
Box_Office(mob/M in world)
alert(usr,"You can now purchase tickets for the budokai event or you can sign up if you wish, Thank you for taking part.","Box Office")
Box_Office2()
mob
proc
Box_Office2(mob/M in world)
var/list/L = new
L += "Ticket"
L += "Sign Up"
L += "Forget it"
var/answer = input("Hello what would you like to do? [M]?") in L
switch(answer)
if("Ticket")
M << "You have purchased a seating ticket, thank you"
del(M)
if("Sign Up")
src << "You have chosen to participate in the budokai"
if("Forget it")
src << "You've changed your mind"
return


Hello, well there seems to be a problem with my code, My list functions don't work, I've tried to make it so, if I start a tournament in the admin tab, it makes it available at the box office to purchase tickets, so when you go talk to the merchent, it gives you a list if you want to purchase a seating ticket or participate, or forget it.
can someone help me with my code, I get the following errors
Invalid Expression on the line where the "L +="Ticket" so that's strange.:


Unindent everything after the variable decleration by one tab.