ID:170155
 
var
login
mob
verb
LoginSwitch()
set hidden = 1
if(GLOBAL_ADMINS.Find(src.key))
switch(alert("Change Login??",,"Open","Close"))
if("Open")
login=1
else
login=0


How would i go about changing global variables? This is not working i get the error

error:login:cannot change constant value

~>Jiskuha
You put...
login = 1
// --or--
login = 0


If it's a variable, (not a constant,) and a pointer to it can be retrieved, you can modify it.

For a little safer version, try...
global.login = 1
// --or--
global.login = 0