Stupid things. Anyway, I get the following runtime whenever I try to use my proc which will follow.
runtime error: type mismatch
proc name: UnInvite Someone To Your House (/mob/houseverbs/verb/UnInvite_Someone_To_Your_House)
source file: verbshouse.dm,38
usr: Metroid (/mob/Newchar)
src: Metroid (/mob/Newchar)
call stack:
Metroid (/mob/Newchar): UnInvite Someone To Your House()
UnInvite_Someone_To_Your_House()
set category = "House"
var/area/housing/A=loc.loc
var/list/players=list()
players += A.invited
var/mob/invite_mob=input("Who do you wish to uninvite access your house?","Invite")in players as mob|null
if(!invite_mob)return
if(alert("Uninvite [invite_mob] access your house, are you sure?","Invite","Yes","No")=="Yes")
A.invited-=invite_mob //line 38
invite_mob << "You have been uninvited into [src]'s house!"
src << "You have uninvited [invite_mob] from your house!"
ID:172324
![]() May 30 2004, 5:15 am
|
|
![]() May 30 2004, 5:17 am
|
|
Which line is 38? And, "Uninvited" sounds kinda weird. How about "Your invitation to [src]'s house has been removed?"
|
hmm is the var invited thats inside the area a mob type ?
eg area house1 var list mob invited = new/list() |
area/housing
var/owner = null var/price var/welcomemsg = "Welcome to your house." var/goodbyemsg = "Don't forget about me!" var/invited = list() house1 price = 75000 name = "House 1" I have it like that, so its var/invited = list() And I did put a note for line 38 why dont you try looking =P |