ID:2312702
 
Code:
mob
Login()
usr.logined += 1
if(usr.logined >= 1)
usr.Load()
usr<<"Welcome Back To -<b>[world.name]</b>-"
world<<"[usr] Logged Back In!"

//usr.newlogin = "No"
else
usr<<"Welcome To -<b>[world.name]</b>-"
world<<"[usr] Logged In For The First Time!"
usr.Move(locate(14,31,1))
// usr.newlogin = 0

//newlogin += 1
//client.Load()
//Change this to where you want them to start

//New Save System


Problem description:
Invalid Expression on line containing
usr.logined += 1


Dunno, but why would you use += if = is just good enough? I mean if it's just to check on if the mob is logged in or not, that should be enough. I believe the problem is that logined isn't defined as a number and therefore can't be used in mathematical operation without giving you the invalid expression error.

Besides, plz include how the variables are defined, that might make understanding it easier.

Also, I see lots of usr in there. Use src if you can, it's better.
mob
Login()
src.logined+=1
if(src.logined==1)
usr.load()
usr<<"Welcome Back"
else
usr<<"Welcome o the game"
usr.Move(locate(14,31,1))
mob/var/logined=0
//This should work your must be missing the var