ID:144883
 
Code:
    savechar()
src.client.Export()
var/savefile/F = new()
F["last_x"] << src.x
F["last_y"] << src.y
F["last_z"] << src.z
F["usr"] << src
src.client.Export(F)

loadchar()
var/savefile/F = new(client.Import())
if(F)
var/last_x
var/last_y
var/last_z
F["last_x"] >> last_x
F["last_y"] >> last_y
F["last_z"] >> last_z
F["usr"] >> src
src.loc=locate(last_x,last_y,last_z)


Problem description:
The problem is that instead of going to the saved location it takes me to the center of the start screen and announces that I logged out.Also there is no error message.and I have the same problem with server side saving.
This could becaused by sevral things ive had this error before from haveing more and one Login proc or not calling the parent on it.
In response to National Guardsmen
This could becaused by sevral things ive had this error before from haveing more and one Login proc

I don't have more than one

not calling the parent on it.
Sorry but ...HUH?
In response to Hellsing4
My Button Code:
turf
newbutton
icon='nb.bmp'
density=1
Click()
usr.newchar()

loadbutton
icon='lb.bmp'
density=1
Click()
usr.loadchar()
F["usr"] >> src
is an interesting line. When that happens, the player is Logout()ed of the old mob, and Login()ed to the saved one.

It's possible that the Logout() proc deletes the old mob. So you get the new mob and Login() runs, but you don't get sent to the right place after that because the old mob running the code that sets the location has been deleted.
In response to Hellsing4
I've Even Tried This:
    savechar()
src.client.Export()
var/savefile/F = new()
F["usr"] << src
src.client.Export(F)

loadchar()
var/savefile/F = new(client.Import())
if(F)
F["usr"] >> src
src.loc=locate(16,16,1)

and it still loads wrong.
In response to Jon88
Wow I changed my Logout()
and now it works thanks sooo much!!!!!