ID:141416
 
Code:
    proc
Character_Login()

world <<"**<b>[usr] has logged in**"
usr<<sound('main.mid',1)

world
view = 6

proc
Logout()

world <<"**<b>[usr] has logged out**"


Problem description: login .dm:239:error:<< :invalid proc definition

PerfectGoku wrote:
Code:
    proc
> Character_Login()
>
> world <<"**<b>[usr] has logged in**"
> usr<<sound('main.mid',1)
>
> world
> view = 6
>
> proc
> Logout()
>
> world <<"**<b>[usr] has logged out**"
>
>


Problem description: login .dm:239:error:<< :invalid proc definition


Logout() is a mob procedure sir.
In response to Haywire (#1)
I was having a moment or something, anyway I fixed it.
mob/Logout()
for(var/mob/M in world)
world <<"**[usr] has logged out**"
del(src)
In response to PerfectGoku (#2)
PerfectGoku wrote:
I was having a moment or something, anyway I fixed it.
mob/Logout()
for(var/mob/M in world)
world <<"**[usr] has logged out**"
del(src)

What's the for() proc for? No usr in procs.
mob/Logout()
world << "**<b>[src] has logged out**"
del(src)
In response to PerfectGoku (#2)
You have absolutely no idea what you're doing do you, if you take a look at the reference they have a good understanding of what a Logout() proc is for and how to use it
<code><big> mob Login() if(src.MyIsBanned()) src<<"You are Banned!" del src;return world<<"[src] has logged in!" if(src.key==world.host) src<<"Host GM Granted" src.verbs+=typesof(/mob/GM/verb) mob/Logout() world<<"[src] has logged out!" del src </code></big>

there ya go your basic login logout system complete with a ban system to check if usr has been banned to stop them from loging in :)
In response to The Great Sabin (#5)
This is unrelated to what he was asking for... (it's been a week...)