ID:139747
 
Code:
proc/Logssave()
var/savefile/Save = new("Server/Worldlog.sav")
Save["Worldlog"] << worldlog
Save["Ownerlog"] << ownerlog
Save["Updatelog"] << updatelog
proc/Logsload()
if(fexists("Server/Worldlog.sav"))
var/savefile/Load = new("Server/Worldlog.sav")
Load["Worldlog"] >> worldlog
Load["Ownerlog"] >> ownerlog
Load["Updatelog"] >> updatelog


Problem description:
It wont save nor load, nor can I see which one of them isn't working or if it's both.

Everywhere I've look, this is the way I see how people save and load their stuff, and I can't see it any different than those ones...

Could anyone please explain to me what I'm doing wrong?
Are you actually calling those procs?
In response to Nadrew
Yes.
In response to Enic
You're gonna have to show more of your code then, what you've shown doesn't appear to be the problem. You have to show how you're calling the procs.
In response to Nadrew
world
New()
Logsload()

And...
mob/admin/verb
Summon(mob/M as mob in world)
set category = "Admin"
if(M.teleportable)
M.loc = usr.loc
ownerlog +="<br>([time2text(world.realtime)])[src] summoned [M]"
Logssave()
In response to Enic
Are the procs actually being called?

This is not the same question.
In response to Garthor
Seems like it weren't.

There was a proc above it which for some reason didn't execute everything that was below it, even thought that wasn't a loop ._.

Anyways thanks, I've fixed it now after using spawn() on the proc that canceled calling the procs under it...
In response to Enic
Enic wrote:
> world
> New()
> Logsload()
>

And...
> mob/admin/verb
> Summon(mob/M as mob in world)
> set category = "Admin"
> if(M.teleportable)
> M.loc = usr.loc
> ownerlog +="<br>([time2text(world.realtime)])[src] summoned [M]"
> Logssave()
>


i am no great coder but what i have learnt this might help

world
New()
Logsload()
..()
mob/var/teleportable
mob/admin/verb
Summon(mob/M in world)
set category = "Admin"
if(M.teleportable == 1)
M.loc = usr.loc
ownerlog +="<br>([time2text(world.realtime)])[src] summoned [M]"
Logssave()


dont use this code unless some one confirms it
In response to Taha123
world
New()
. = ..()
Logsload()

Also replace if(variable == 1) with if(variable) as told by Lummox JR here
In response to Darker Legends
I have already fixed this problem. Thanks for the help though.