Im trying to make it so that only the owner and the people he allows can enter his house. In my coding I'm making it so the owner types in the name of the person he wants to be able to enter his house then his/her name gets put in a list, But I get a runtime error when I try to test it out.
Here's the error(The error happens after I enter the name):
runtime error: undefined variable /mob/var/Lisenced
proc name: Lisence (/obj/house/Door/verb/Lisence)
usr: Koolguy900095 (/mob)
src: Koolguy900095 (/mob)
call stack:
Koolguy900095 (/mob): Lisence()
And here is the coding im using:
obj
house
Door
var/list/Lisenced = list()
density = 1
icon = 'Turfs.dmi'
icon_state = "Door"
verb
Lisence()
var/lisencing = input("Enter the name of the person you would like to lisence.","Lisence")
lisencing += Lisenced
Can you tell me whats wrong and how I can fix it? Thanks!
PS: I just realised it says undefined variable, but it is defined...:(
ID:175205
![]() May 27 2003, 12:03 pm
|
|
![]() May 27 2003, 12:33 pm
|
|
You have it backwards. It should be Liscenced += liscencing.
|
Well, I'm not sure if this will work, but maybe...
obj |
Koolguy900095 wrote:
Im trying to make it so that only the owner and the people he allows can enter his house. In my coding I'm making it so the owner types in the name of the person he wants to be able to enter his house then his/her name gets put in a list, But I get a runtime error when I try to test it out. DUH! It just hit me! Your var is messed. should be: var/lisencing = input("Enter the name of the person you would like to lisence.","Lisence") as text not sure if you fixed this yet... |