ID:149001
 
It keeps on saying
InnKeeper.dm:7:error: if: missing comma ',' or right-paren ')'



Innkeeper
icon = 'npc.dmi'
icon_state = "innkeeper"
verb
SleepAtInn()
switch(input("Would You like to rest for 25 Gold?") in list("yes","no")
if ("yes")
usr.sight = 1
sleep(40)
usr << "You have a good nights sleep."
usr.gold -= 20
usr.sight = 0
usr.health = usr.maxhealth
if ("no")
You're missing an ) at the end of switch(input())
In response to Nadrew
I did what you said and ran into another problem. It says

InnKeeper.dm:6:error: expected expression
    Innkeeper
icon = 'npc.dmi'
icon_state = "innkeeper"
verb/SleepAtInn()
switch(input("Would You like to rest for 25 Gold?") in list("yes","no"))
if ("yes")
usr.sight = 1
sleep(40)
usr << "You have a good nights sleep."
usr.gold -= 20
usr.sight = 0
usr.health = usr.maxhealth
if ("no") usr << "Fine."


Nadrew forgot to bump the "Yes" and "No" because it's in a switch statment.

RaeKwon
In response to Codesterz
Because your indentation is wrong.
In response to Nadrew
Thanx I got it woking