ID:145233
 
Code:
        View_Someone(mob/M in world)
set category = "Players"
if(usr.isviewing == 1)
usr.client.eye = usr
usr.client.perspective = MOB_PERSPECTIVE
usr.isviewing = 0
else usr<<"Fool!"
usr.client.perspective = EYE_PERSPECTIVE
usr.isviewing = 1
usr << "HOW TO LOOK BACK TO YOURSELF: Click ViewSomeone, just select someone from the list and you'll view yourself instead of him/her."
usr.client.eye = M


Problem description::error:usr.isviewing:undefined var
It also sais invalid expression and highlights usr.client.perspective = EYE_PERSPECTIVE


mob
var/isviewing
verb
View_Someone(mob/M in world)
set category = "Players"
if(usr.isviewing) // Boolean vars, check below
usr.client.eye = usr
usr.client.perspective = MOB_PERSPECTIVE
usr.isviewing = 0
else
usr<<"Fool!"
usr.client.perspective = EYE_PERSPECTIVE
usr.isviewing = 1
usr << "HOW TO LOOK BACK TO YOURSELF: Click ViewSomeone, just select someone from the list and you'll view yourself instead of him/her."
usr.client.eye = M

/* Boolean vars */
// Only for checking TRUE / FALSE values
if(var==1) // Wrong!
if(var) // Right!

if(var==0) // Wrong!
if(!var) // Right!