ID:1157398
 
Keywords: help, login, newb, question
(See the best response by Kaiochao.)
Code: It's basically the average mob/Login()
system. I've just added a bunch of procs.

mob
Login()
if(src.key=="Kboy33")
src.verbs+=typesof(/mob/Owner/verb)
usr.Online="Online"
usr<<sound('Crossing Field.ogg')
usr.CharacterSelection()
world<<"\red [key] has connected to the server."
usr<<"It is Day [Day]. It is Week [Week]. It is the month [Month]. The year is [Year]."
winset(src,"default","titlebar=false")
winset(src,"default","is-maximized=true")
winset(src,"loginwindow","titlebar=false")
winset(src,"loginwindow","is-maximized=true")
// src.LevelUp()
// src.Auto_Save()
// src.NotDead()
src.addname("[src.key]")
src.medals("Login")
src.Hunger()
src.icon_state="Load"
sleep(100)
src.icon_state=""


Problem description: My issue is that everything under src.addname() wont execute. I know it may be a newb question, but I'm just looking for help! Thanks~

Sure:
mob/proc
addname(var/text)
var/leftspot=round((length(text)/2)*-3.65)
for(var/i=1,i<=length(text),i++)
var/obj/N=new/obj/name
N.pixel_x=leftspot
N.icon_state="[copytext(text,i,i+1)]"
src.overlays+=N
leftspot+=4
bump?
Can you post any errors you get (if any) in the game?

Can you post the medals() and Hunger() proc?

What is meant to happen after src.icon_state=""? What does happen?

Does the CharacterSelection() proc locate the player to the map (for example: usr.loc = locate(1, 1, 1))?
CharacterSelection() is a verb which when the user logs in, sends them to a certain pane. I will post the Codes ASAP.
In response to Kboy33
You should also probably call the parent proc for Login()

mob/Login()
..()
// do stuff
That dosen't work. It dosen't even run when I press CTRL + R.
Is there an infinite loop that isn't spawned in Hunger()?
That reminds me. Code:

Hunger:
mob
proc
Hunger()
while(src.alive)//==1)
src.Hunger-=5
sleep(600*3)
src.Hunger()
In response to Kboy33
Best response
So not only is it an infinite loop, it adds a whole other infinite loop each time.

Just spawn the while() and don't call itself inside itself.

Or, you could do infinite loops right and use Stephen001's Event Scheduler.
In response to Kaiochao
Kaio, Thanks a lot. Sorry that it was a noob issue (didn't mean to waste any of your time). Now I can get back to working!

Once again, thanks Kaio, and everyone else.