mob
Login()
var/firstletter=copytext(src.ckey, 1, 2)
if(fexists("players/[firstletter]/[src.ckey].sav"))
var/savefile/F=new("players/[firstletter]/[src.ckey].sav")
Read(F)
Move(locate(F["last_x"],F["last_y"],F["last_z"]))
usr.client.view=7
world << "<b>[usr] has logged in!"
else
alert("No character found")
alert("What's your name?")
usr.name=input("Choose a name for your character.","Your Name",usr.name)
usr.icon_state = gender
usr.loc=locate(6,11,1)
world << "<b>[usr] has logged in!"
usr.client.view=7
mob
Logout()
..()
world << "<b>[usr] Logged out.</b>"
var/firstletter=copytext(src.ckey, 1, 2)
var/savefile/F = new("players/[firstletter]/[src.ckey].sav")
Write(F)
del(src)
Problem description:
Im getting : bad arguement definition on the line: usr.client.view=7, but its not about usr.client.view=7, becuz deleting it gives me the same problem except it points at the same line.
i found this login and logout ( save and load) code on the forum, because of a problem i was having with my original one. whats the problem here???
Problem description: im getting inconsistent indentation on the var/firstletter, and bad arguement definition on the first usr.client.view=7... i got this log in (load) and a save(logout) because my original did not work. only the load has the problem... why is the var/firstletter have a wrong indentation????? im not sure what the usr.client.view is, but when i try to delete that line, the error sttays in the same line, even tho its gone... im sorry that i cudnt create a different version of ma original log in and out code. but this one was a solution to my previous problem,
plz help me
=D