ID:175619
 
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 ..()

</<>
http://dictionary.reference.com/search?q=pwipe

Seeing as it's not a word or a typo, your use of "pwipe" prevents me from assisting you.
In response to Garthor
delete the save file, hows that?:P
In response to Buzzyboy
del(S)
In response to Garthor
That makes no sense
In response to Buzzyboy
Buzzyboy wrote:
delete the save file, hows that?:P

Look up fdel()
In response to Theodis
I don't know the file name
In response to Buzzyboy
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?
In response to Theodis
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
In response to Buzzyboy
Buzzyboy wrote:
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

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.
In response to Theodis
aaaaaaaawwww maaaan
In response to Buzzyboy
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.