mob/Logout()
for(var/mob/M in world)
if(M.key==usr.key)
return
else
world << "[src] has left this world!"
players-=usr.key
del(src)
not the right indentation shown but that's the code, sometimes it won't selete the char if the user has left....I think it's when they close ds and not logout
ID:146436
Jun 20 2005, 1:48 pm
|
|
In response to Crzylme
|
|
yes that's the code, should I del usr instead of src?
|
Jaea wrote:
mob/Logout() not the right indentation shown but that's the code, sometimes it won't selete the char if the user has left....I think it's when they close ds and not logout Using the right indentation is very important on the forums to help us diagnose your problem. In your case, it seems to be the pointless loop. Simplify your Logout proc into just: mob/Logout() And you shouldn't have any problems. |
In response to Jaea
|
|
I Think it is because you have the part where it tells the user to return if the Key is the User's Key.
|
In response to King Gunnerblast
|
|
thanks for the advice, I'll let u know if it works whenever I get this stupid hosting thing to work because god hates me and my pager is broke and my hub doesn't show up when I host me game
|
In response to Jaea
|
|
First of all, change ALL usr's in your Logout() to src. That's one thing I saw right away.
|
In response to Ben G
|
|
I tried that ben and it would automatiacally log them out when they were done creating their char
|
In response to XxDragonFlarexX
|
|
that didn't work either
same problem |
this si the way the code goes right?
I mean in your code... Does it look like this? I tried indenting it to the way you have it...