ID:149486
 
obj/seller
icon = 'seller.dmi'
verb/Talk()
switch(input("Do you want to buy a house ?")in list("Yes","No"))
if("yes")
switch(input("What Size House Are You Looking For?")in list("Big","Medium","Small"))



Dose that code seem right to anyopne because i get errors if anyone sees anything wrong can they fix it and tell me what i did wrong ? Thank You

-Err0r
what error did you get?
In response to SuperGoku15
loading Life Err0r Style.dme
Life Err0r Style.dme:72::warning: empty switch statement
Life Err0r Style.dme:72:if :warning: if statement has no effect
Life Err0r Style.dme:73::warning: empty switch statement
Life Err0r Style.dme:73:error::expected "if" or "else"
im not sure if this is right but capitalize the y in yes tell me if its wrong
In response to SuperGoku15
SuperGoku15 wrote:
im not sure if this is right but capitalize the y in yes tell me if its wrong

Thats one problem. The other is he is using switch entirely wrong. And besides that, switch should also be indented.

[edit] Ooops, hes using switch correctly. He just needs to add if statements under it. Also, he needs to indent is first if, and then put a similar if statement under his 2nd switch.

verb/Talk()
switch(input("Do you want to buy a house ?")in list("Yes","No"))
if("yes")
switch(input("What Size House Are You Looking For?")in list("Big","Medium","Small"))
if("Small")
blah
if("Medium")
blah blah
if("Big")
blah blah blah