ID:261475
 
Ok, I have this proc named namecheck()
mob/proc/namecheck()
usr.name=usr.fname
but whenever I use it I get a runtime error and the users name dosn't change do you know why?
try

usr.name = "[usr.fname]"

this works because usr.name usually uses a text string, which is why we use the "" marks, and the usr.fname is a string as well, or a variable, these are seperated in text strings with the [] symbols... basic stuff, but useful!!!
if this were a number, there would be no problem, but since it's not...... BYE!!!
In response to Ter13
nope that didn't help it gave me somthing like it couldn't take it away from the list
In response to Strange Kidd
give me the exact message
In response to Ter13
runtime error: cannot remove from list
proc name: Test (/mob/verb/Test)
source file: atotmsf.dm,658
usr: Strange Kidd (/mob/man)
src: Man (/mob/Man)
call stack:
Man (/mob/Man): Test(Man (/mob/man))
In response to Ter13
runtime error: cannot remove from list
proc name: Test (/mob/verb/Test)
source file: atotmsf.dm,658
usr: Strange Kidd (/mob/man)
src: Man (/mob/Man)
call stack:
Man (/mob/Man): Test(Man (/mob/man))
In response to Strange Kidd
whats the line 658 on atotmsf.dm say?
In response to Strange Kidd
you see, it's hard to tell what line 658 is with just a snippet of your code, point it out please!
In response to Ter13
usr.name=usr.fname would work just fine if usr.fname is a text string.