Does anyone know how to make this code pwipe?
mob/verb/save()
var/savefile/F = new()
F << usr //write the player's mob
usr.client.Export(F)
client/New()
var/client_file = Import()
if(client_file)
var/savefile/F = new(client_file) //open it as a savefile
F >> usr //read the player's mob
return ..()
</<>
ID:175619
![]() Mar 27 2003, 2:17 pm
|
|
Buzzyboy wrote:
I don't know the file name Well how do you make savefiles if you don't know where you're saving them to :P? |
I used the code when I searched for savefile
it saves for every server, as in, you login in Blank2435 server, logout and join Blrkg34 and same save |
Buzzyboy wrote:
I used the code when I searched for savefile So you're saving on the clients machine rather than on the server? Well if that's the case I haven't done any work with client-side save files so I can't help you out much there. |
Oh, client-side savefiles? Heck, that's easy. =)
Calling <code>client.Export()</code> with no arguments will wipe out <code>client</code>'s client-side savefile. You can only do this when the player is logged into the game, though. So you'd have to delete the savefile immediately after the player logs in, and then somehow remember that the player has already had their savefile wiped. |
Seeing as it's not a word or a typo, your use of "pwipe" prevents me from assisting you.