ID:145137
 
Code:
turf
ChangeHair
icon = 'changehair.png'
density = 0
Click()
alert(usr,"[usr.name],Here you are going to be able to choose the hair style you would like to have.","??Voice??")
switch(input("Which one would you like to look like on your adventure?","??Voice??")in list("Sora","Riku","Axel","Kari"))
if("Sora")
usr.overlays -= usr.hair
var/hair1 = 'Pointer.dmi'
usr.hair = hair1
return..()
if("Riku")
usr.overlays -= usr.hair
var/hair1 = 'pointer.dmi'
usr.hair = hair1
return..()

if("Axel")
usr.overlays -= usr.hair
var/hair1 = 'pointer.dmi'
usr.hair = hair1
return..()

if("Kari")
usr.overlays -= usr.hair
var/hair1 = 'pointer.dmi'
usr.hair = hair1
return..()


Problem description:

i keep getting this ::warning: empty switch statement error and i cant figure out what is wrong with it.
All the switch options (the if's) should be indented one more... otherwise the coding will take it as a new line rather than a switch options.... >.>

- GhostAnime
In response to GhostAnime
GhostAnime wrote:
All the switch options (the if's) should be indented one more... otherwise the coding will take it as a new line rather than a switch options.... >.>

- GhostAnime

Exactly, and they'd all evaluate to true.