runtime error: bad client in Developer Help
|
|
Code:
turf/Recources Build_Site icon = 'Turfs.dmi' icon_state = "build site" verb/Build() var/list/classlist = list("Tree","Clay pit","Wheat Field","Mountain","Armory","Flour Mill") var/cclass = input(src,"buildings") in classlist switch(cclass) if("Tree") src = new /turf/Resources/Tree_Lv_0 () if("Clay Pit") src = new /turf/Resources/Clay_Pit_Lv_0 () if("Wheat Field") src = new /turf/Resources/Wheat_Field_Lv_0 () if("Mountain") src = new /turf/Resources/Mountain_Lv_0 () if("Armory") src = new /turf/Resources/Armory_Lv_0 () if("Flour Mill") src = new /turf/Resources/Flour_Mill_Lv_0 ()
|
Problem description:
runtime error: bad client
proc name: Build (/turf/Recources/Build_Site/verb/Build)
source file: Build_Site.dm,8
usr: Prf X (/mob)
src: Build Site (6,7,2) (/turf/Recources/Build_Site)
call stack:
Build Site (6,7,2) (/turf/Recources/Build_Site): Build()
|
You're trying to get an answer from the turf ? That's the error. You're sending the input to the turf and not to the user.