ID:139264
 
Code:
mob/proc
Lock_Movement(mob/M as mob)
M.movement_locked = 1
usr.movement_used = 1
Unlock_Movement(mob/M as mob)
M.movement_locked = 0
M.movement_used = 0


Problem description:

Proc.dm:1:error: mob: expected end of statement

I keep on trying to debug this coding, but everytime I uncheck the box of the dm file it will go to my turf dm and say the same thing giving me this error

Turf.dm:1:error: turf: expected end of statement

I have coded alot of games before and this is the first time its happend, please help me.
Your error is in one of your files before the one you got the error in, you probably haven't closed a bracket of some sort, so go over the .dm file you programming just before you first got the error and have a look.

When I get this error its often because I forget to close brackets in an if or looping statement because I was using a proc as one of the conditions, like:
if(isDead(M)
// do something

So have a look to see if you have done the same! :)
In response to Lyndonarmitage1
I fixed everything and it still gave me the same error in the same spot.
In response to Imzco
try using (var/mob/M) instead of (mob/M as mob)
In response to Bravo1
Bravo1 wrote:
try using (var/mob/M) instead of (mob/M as mob)

tried it, still did not work. I have no clue why this keeps on saying this. I have 2 years of coding experience and this is the first time this has happened. I'm starting to get frustrated.
In response to Imzco
I found out the problem, it was because one of my turfs had a space through it. Thanks for all the help.