ID:262530
 
BYOND Version: Latest one (3.5)

Operating System: Windows XP Professional

Web Browser: Internet Explorer

Detailed Problem Description: For some reason when I changed a piece of my coding and then changed it back to what it was before, it said "if: missing comma or right paren ')' and "if: expected end of statement" then it got weirder and made said every "else" in the .dme was an empty clause.

Code Snippet to Reproduce Problem:
if(shot == 0)

Dream Maker says it's this code piece but it was fine before.

Does the problem occur:
Every time? Or how often? Every time.

In other games? No.

On other computers? Didn't try.

In other user accounts? Doesn't apply.
Right:
if()
if("Okefenokee")
Wrong:
if(
if("Okefenokee)
if("Okefenokee

Make sure all of your if() statements are properly closed.
In response to Sinoflife
If I only changed one piece of coding, then how is every else statement in the .dme changed?
In response to Justin Knight
Justin Knight wrote:
If I only changed one piece of coding, then how is every else statement in the .dme changed?

Because bad code horribly confuses the compiler. :P
Look at the line of code directly above or below the line the comipler highlighted when you double clicked the error.
Make sure they have no flaws.For some reason when it comes to parenthesis and commas the compiler may be a line off.

In response to Prjct_Caine
Thanks a lot guys, I thought something with 140+ errors would be a bug because I only edited one segment. I found the problem, i'm fixing it now.

EDIT: I fixed it, it was the line above it. if anyone cares
 var/shot = (rand(0,4))
didn't have an extra closing parenthesis.
In response to Justin Knight
Your Welcome.