ID:163049
 
mob/proc
LevelUp()
if(usr.EXP = 10)
usr << "You Level Up!"
usr.health += 10

The code is fine but it says the if part is like missing expression,

Its really weird and i try tabbing forward and backward but it doesnt work.

Plz help.

-Darkarch
if(usr.EXP == 10)
In response to Ripiz
Hmmmmmm, it stilldoesnt work

(Im probably doing something wrong i should go over it again.....)
In response to Darkarch
Note there's two equal signs, not one.

= means to change the value of something

== means you're comparing the value of something


As a side note, stop abusing usr, usr != the current person calling it (in most situation).

http://bwicki.byond.com/ByondBwicki.dmb?WhatIsUsr
http://bwicki.byond.com/ByondBwicki.dmb?UsrLecture
http://bwicki.byond.com/ByondBwicki.dmb?UsrIsEvil
http://bwicki.byond.com/ByondBwicki.dmb?PseudoVerbs