ID:142590
 
Code:
mob
Login()
var/savefile/F = client.Import()
if(F) Read(F) // restore properties
world << "<FONT FONTSIZE=+6 COLOR=#C11B17><B><U>[usr]</U> logs in!</B></FONT>"


Problem description: Ok here what the problem says: proc definition not allowed inside another proc... I want it to say to the world that u loggged in. I think in need to move it but where...

Probably your indentation. The world << line needs to be even with the lines before it.
In response to Garthor
ok that is fixed now i need help on a two other problems...

else
world << "<FONT FONTSIZE=+6 COLOR=#C11B17><B><U>[usr]</U> logs in!</B></FONT>"

this problem is: 'else' clause without preceding 'if' statement

mob
write(savefile/F)
//store coordinates
F << x
F << y
F << z

the next problem is write: undefined proc
In response to Bladedemon70
i going to post my entire code...look at previous message for listed problems...

mob
Login()
var/savefile/F = client.Import()
if(F) Read(F) // restore properties
world << "<FONT FONTSIZE=+6 COLOR=#C11B17><B><U>[usr]</U> logs in!</B></FONT>"
else
world << "<FONT FONTSIZE=+6 COLOR=#C11B17><B><U>[usr]</U> logs in!</B></FONT>"
..()
proc/SavePlayer()
var/savefile/F = new()
Write(F) // save properties
client.Export(F)


mob
Logout()
world << "<FONT FONTSIZE=+6 COLOR=#C11B17><B><U>[usr]</U> logs out!</B></FONT>"

mob
write(savefile/F)
//store coordinates
F << x
F << y
F << z
//stored varibles
..()
Read(savefile/F)
var {saved_x;saved_y;saved_z}
//load coordinates
F >> saved_x
F >> saved_y
F >> saved_z
//restore varibles
..()
//restore coordinates
Move(locate(saved_x,saved_y,saved_z))

var
savefile
Savefile = new("players.sav")

client
New()
var/savefile/F = new(ckey)
F >> usr
return ..()

client
Del()
var/savefile/F = new(ckey)
F << usr
del(usr)

world
Topic(T)
if(T == "player")
//download and open savefile
var/savefile/F = new(Import())

//load mob
var/mob/M
F >> M

return 1
In response to Bladedemon70
The first you just need to delete the else statement. The second is a capitalization error.
In response to Bladedemon70
thanks so much for the help Garthor...
hey wouldnt know where to look for better help pn makeing html coding? i only know so much...
In response to Bladedemon70
If you don't know how to write basic HTML, there are many tutorials on that on the internet. Just search in Google.
A popular site for other things too you can try is http://www.w3schools.com/html/default.asp .

For how to use HTML to communicate with your DM code, look up the Topic() procs and then read these tutorials:
http://www.byond.com/members/ DreamMakers?command=view_post&post=34510

http://www.byond.com/members/ DreamMakers?command=view_post&post=34078
(this one has multiple parts, I've linked the 1st)

If you need more information you should search around the BYOND site for information first before posting, since there are many tutorials and posts covering common things.
Good luck.
In response to Kaioken
thanks a bunch