ID:144757
 
Code:
Budokai()
set category="Social"
set src in oview(1)
if(usr.tournament)
usr.tournament=1
Box_Office2()


mob
proc
Box_Office2(mob/M in world)
switch(input("Which Part of the Budokai Do you wish to attend to?, Note:Tickets Cost 5$") in list("Ticket","Sign Up","Forget it"))
if("Ticket")
if(usr.currency<=5)
usr.currency-=5
usr.contents+=/obj/Ticket
else
M<<"Not enough money to buy one"
if("Sign Up")
M << "You have chosen to participate in the budokai"
usr.contents+=/obj/Application
if("Forget it")
M<<"You've Changed your mind"
return


This is the whole of my Tournament Code, for some reason in game I get a runtime error which is "runtime error: cannot append to list
proc name: Box Office2 (/mob/proc/Box_Office2)
usr: Nexus (/mob)
src: Box Office (/mob/Box_Office)
call stack:
Box Office (/mob/Box_Office): Box Office2(null)
Box Office (/mob/Box_Office): Budokai()"

It happans if I click ticket or sign up, but for some reason on the ticket one I click it does deduct money but the Ticket doesn't go into my inventory, I just get that runtime error on the right side panel. Thanks for helping


usr.contents+=/obj/Application


There's your problem. You can't add a type path to contents. Look up new.
In response to Jp
How would I go about adding it to my inventory??
In response to Nexus6669
*Problem Fixed, Thank You*