ID:262053
 
Ok i have this code to get certain writing on the screen, that coding is perfect, the Problem is Spawning it!
Here is the code:

mob
spawn()
src.Stuff() - Login.dm:140:error::empty type name (indentation error?)
mob
proc
Stuff()
textonscreenbackground(1,1,13,13)
textonscreenTEXT(1.5,12,13,1.5,"Wake up [usr].")
sleep(5)
usr.close_menu()

But i get a error which is above src.Stuff() I tried New instead of spawn() and i got a lot of runtime errors. But it came up, the writing, at the wrong time. Which said "ake up the choosing character" Yes it did say ake not wake. I tried also Client/New(). I get a error:
Login.dm:139:error:src.Stuff:undefined proc
So i try mob.Stuff(). It loads with no errors. Then Runtime errors:
runtime error: Cannot execute null.Stuff().
proc name: New (/client/New)
usr: null
src: Dark Shadowss (/client)
call stack:
Dark Shadowss (/client): New()
runtime error: Cannot read null.name
proc name: SaveMob (/client/proc/SaveMob)
usr: null
src: Dark Shadowss (/client)
call stack:
Dark Shadowss (/client): SaveMob()
Dark Shadowss (/client): Del()

Please help! Also, This is after making the character etc
Guess what your problem is?

You're using usr in procs.
In response to Garthor
Still doesn't work... Help!
In response to Dark Shadowss
i had something simlar to this u basically make a useless var like var/nuthing and in put it in basically make it fill the skip
Dark Shadowss wrote:
Ok i have this code to get certain writing on the screen, that coding is perfect, the Problem is Spawning it!
Here is the code:

mob
spawn()
src.Stuff() - Login.dm:140:error::empty type name (indentation error?)

spawn() is not a proc that you can override, which is what this looks like to DM. DM however recognizes spawn() is not that kind of proc, so it knows you're using it out of place. It needs to be used inside another proc in order to make any sense.

Lummox JR
Here, it works. Don't use usr in procedures.
mob
Login()
src.Stuff()
mob
proc
Stuff()
src.textonscreenbackground(1,1,13,13)
src.textonscreenTEXT(1.5,12,13,1.5,"Wake up [src].")
sleep(5)
src.close_menu()
In response to Mastergamerx
Not only does that not make sense, it wouldn't work.
In response to Garthor
mob
Login()
spawn()
src.Stuff()

would that work better?