ID:165292
 
Could someone tell me what is wrong with this code?
It says these erros:
loading naruto Ultimate.dme
Challenge.dm:171:error::missing expression
Challenge.dm:177:error::missing expression
Challenge.dm:183:error::missing expression
Challenge.dm:189:error::missing expression
Challenge.dm:195:error::missing expression
Challenge.dm:201:error::missing expression

naruto Ultimate.dmb - 6 errors, 0 warnings (double-click on an error to jump to it)

Regards,

Rick
        Clear_Challenge()
set category = "Challenge"
if(usr.arena1=1)
usr.arena1=0
arena1=0
usr<<"<b><font size = 2><font color=red>You made Arena 1 free for others, Thanks!"
world<<"<b><font size = 2><font color=red>[usr] made Arena 1 free."
return
if(usr.arena2=1)
usr.arena2=0
arena2=0
usr<<"<b><font size = 2><font color=red>You made Arena 2 free for others, Thanks!"
world<<"<b><font size = 2><font color=red>[usr] made Arena 2 free."
return
if(usr.arena3=1)
usr.arena3=0
arena3=0
usr<<"<b><font size = 2><font color=red>You made Arena 3 free for others, Thanks!"
world<<"<b><font size = 2><font color=red>[usr] made Arena 3 free."
return
if(usr.arena4=1)
usr.arena4=0
arena4=0
usr<<"<b><font size = 2><font color=red>You made Arena 4 free for others, Thanks!"
world<<"<b><font size = 2><font color=red>[usr] made Arena 4 free."
return
if(usr.arena5=1)
usr.arena5=0
arena5=0
usr<<"<b><font size = 2><font color=red>You made Arena 5 free for others, Thanks!"
world<<"<b><font size = 2><font color=red>[usr] made Arena 5 free."
return
if(usr.arena6=1)
usr.arena6=0
arena6=0
usr<<"<b><font size = 2><font color=red>You made Arena 6 free for others, Thanks!"
world<<"<b><font size = 2><font color=red>[usr] made Arena 6 free."
else
return
When using if() statements, be sure to use ==, which means is equal to. A single = is used to set something equal to something else.
In response to Dice1989 (#1)
Dice1989 wrote:
When using if() statements, be sure to use ==, which means is equal to. A single = is used to set something equal to something else.

Yep, it worked.
Thanks for hel;ing me! =)