ID:142316
 
Code:
obj/tele
verb
Telepathy(mob/M in world, msg as text)
Safe_Guard(M,SGS_Filter_txt("<font color = silver>[usr]: [msg]"))
Safe_Guard(usr,SGS_Filter_txt("<font color = silver>[usr]: [msg]"))
World_Say(msg as text)
set category = "Social"
if(usr.mute == 1)
usr << "<b>YOU'RE MUTED!</b>"
else
Safe_Guard(world,SGS_Filter_txt("<font color = red>[usr]</font>: <font color = silver>[msg]</font>"))


verbs.dm:232::warning: empty switch statement
verbs.dm:232:error::expected "if" or "else"

1 error, 1 warning

How do I fix this?!?!?!!? I've searched through the guide and still not sure! Please Help!b>

Please dont give me the link to the DM tutorial, I've checked it, im still confused. Please give me the actual code to fix this, or a hint, or something. Not just a reference to soem other tutorial.

The error is not on those codes. You have an empty switch statement like what DM says.

switch should have if statements.
For example:
switch(3)
if(3)
src << "Three."
else
src << "Not three."
In response to Jemai1 (#1)
But there shouldn't be a switch statement there at all. Why does it say there is? Or in this case, that there isn't. Im still kinda new to coding, so that may sound stupid. But I'd really like to get this fixed.
In response to Jemai1 (#1)
Jemai1 wrote:
The error is not on those codes.

Well when I click on the error it brings me to that line of code.
Check above the line that the error is reported on. The compiler expected the if there, so there's an empty switch above it.
In response to ChicoTheMan94 (#3)
I would check other lines for a switch statement, (specifically the lines near where it reports the error) since it says that there's an empty switch statement...
Make sure to check other lines for other errors from now on as well...
In response to Naokohiro (#5)
Okay guys, thanks a ton! It was with the line above it. Thanks so much for your help. Game works fine now. :D!