turf/LoginScreenStuff
NewGame
layer=3000000002
Click()
usr.client.command_prompt="You're currently creating a character.."
usr.newgame=1
sleep(10)
usr.loc = locate(71,59,2)
LoadPlayer
layer=3000000002
Click()
usr.client.command_prompt="You're currently loading a character.."
if(fexists("players/[usr.ckey].sav"))
var/savefile/F = new("players/[usr.ckey].sav")
F["StarChips"]>>src.StarChips
F["Money"]>>src.Money
F["name"]>>src.name
F["contents"]>>src.contents
F["deck"]>>src.deck
for(var/obj/O in src)
O.suffix=null
mob/proc/load()
if(fexists("players/[usr.ckey].sav"))
var/savefile/F = new("players/[usr.ckey].sav")
F["last_x"] >> src.x//restores tha player's x loc
F["last_y"] >> src.y//restores the player's y loc
F["last_z"] >> src.z//restores the player's z loc
F["StarChips"]>>src.StarChips
F["Money"]>>src.Money
F["name"]>>src.name
F["contents"]>>src.contents
F["deck"]>>src.deck
for(var/obj/O in src)
O.suffix=null
mob/verb/save()
var/savefile/F = new("players/[usr.ckey].sav")
F["last_x"] << src.x//stores players x loc in the file
F["last_y"] << src.y//stores player's y loc in the file
F["last_z"] << src.z//stores player's z loc in the file
F["StarChips"]<<src.StarChips
F["Money"]<<src.Money
F["name"]<<src.name
F["contents"]<<src.contents
F["deck"]<<src.deck
usr<<"Game Saved"
Problem description: loading Yu-Gi-Oh Demons Within.dme
Code\Effects.dm:990:error:src.StarChips:undefined var
Code\Effects.dm:991:error:src.Money:undefined var
Code\Effects.dm:994:error:src.deck:undefined var
Yu-Gi-Oh Demons Within.dmb - 3 errors, 0 warnings (double-click on an error to jump to it)
when i make a new charactor and open my new card packs
and click save, then relog and click load player to see if works, it like scrambles the login like "welcome curzon u have joined us" and says "[usr' logs in" "[usr' logs out then it stays at the tittle screen.
i need it to save all the starchips, the deck, and so on.
but it always fails
You will be credited for help, thank u for your time "Curzon"
Hiead