ID:268047
 
Error:

skills.dm:559:if :warning: if statement has no effect

Code:
    fire()
if(usr.learntfire == 0)
if(usr.maxmagic >=30)
if(usr.class == "Magician")
usr << "<I><B><font face = courier><font color = green>You learned Fire!"
usr.verbs+=new/mob/tech/verb/Fire()
usr.learntfire = 1


Any idea how to get rid of those compile errors?
remove one identation at the 3rd "if" line
In response to Mist Form
Mist Form wrote:
remove one identation at the 3rd "if" line

still get the error
In response to Vash_616
The problem is that one of your if() statements won't change anything whether it's true or not, and thus, the compiler gives you a warning, because that's pretty much always unintended, but it's not an error, so you can still compile and run the program. In your case, it won't have the desired effect, however.