ID:150049
 
heres my code:
verb
blast(mob/M as mob in oview(1))
if(usr.MP<=10//this Will cause a action if the users magic is less then 5//
else //otherwise...
usr << "Light sworms around you than jumps at your enemy"
oview() << "[usr] blasts [M]!"
var/damage = rand(5,20)
var/MPU = 10
usr.MP -= MPU
M.HP -= damage
M.DeathCheck()

and heres my error:

login.dm:23:error: else: missing comma ',' or right-paren ')'
i would just like to know whats wrong here and the error is on the line of the "else"
Scoobert wrote:
heres my code:
verb
blast(mob/M as mob in oview(1))
if(usr.MP<=10<font color = red>)</font>//this Will cause a action if the users magic is less then 5//
else //otherwise...
usr << "Light sworms around you than jumps at your enemy"
oview() << "[usr] blasts [M]!"
var/damage = rand(5,20)
var/MPU = 10
usr.MP -= MPU
M.HP -= damage
M.DeathCheck()

and heres my error:

In the if(usr.MP...) part, you didn't close the parenthesese. Hope I helped;
?The Wizard of How¿

P.S.
Don't bump your posts
login.dm:23:error: else: missing comma ',' or right-paren ')'
In response to The Wizard of How
i fixed it how you sed now im geting the error:
login.dm:22:error: missing left-hand argument to =.
In response to Scoobert
Well, what line is the one the error is happening on? Please post that line and the lines around it.
In response to Nadrew
this one right here if(usr.MP < = 10 )
In response to Scoobert
< = isn't a operator <= is.
In response to Nadrew
if i do that i get anothe error:
login.dm:22:if :warning: if statement has no effect
login.dm:24:error:else :'else' clause without preceding 'if' statement
In response to Scoobert
never mind i found mt prob it was that my usr"" was not indented enuff