ID:175824
Mar 7 2003, 4:12 am
|
|
I was wondering if anyone could help me define a variable that represents the first 4 letters/numbers in usr.name?
|
In response to Malver
|
|
usr is undefined and if i change it to a mob/var i get errors
mob/var first_four="[copytext(usr.name,1,5)]" i tried this mob/var first_four=copytext(usr.name,1,5) and this mob/verb/namer() var/first_four="[copytext(usr.name,1,5)]" usr<<"[first_four]" but none worked.. ETG |
In response to Erdrickthegreat2
|
|
Erdrickthegreat2 wrote:
usr is undefined and if i change it to a mob/var i get errors I supplied an example. You did say the pathway was usr.name. mob/verb/namer() Are you sure? I just tried this, and it works fine. |
In response to Malver
|
|
lol yeah i just tried it worked =)
|
The copytext() proc is most useful when you want to only get fragments of a string. :)
var/first_four = copytext(usr.name,1,5)