if name = ""
name = "Blank Name = Banned"
Is there anyway I can do that? Or do it if so if their name is "" they get disconnected?
ID:268447
Aug 5 2004, 8:17 am
|
|
if name = "" Is there anyway I can do that? Or do it if so if their name is "" they get disconnected? |
In response to Flame Sage
|
|
Thanks :O
[Edit]Hmm... can't get it to quite work... I'm going to go... tinker with it... the User is still there... |
In response to Foomer
|
|
Thank, you Foomer, very much... :P
|
In response to Flame Sage
|
|
First, it should be src here. Second, null is NOT the same as "". However, if you use !name, that compares it against null, "", and 0.
|
In response to Garthor
|
|
Flame Sage wrote:
if(name == null) (Null being the same as "") Garthor wrote: First, it should be src here. But what if its an obj/verb that deletes the player if the obj has no name? :P |
In response to Foomer
|
|
Then he could change it.
What if it's a proc? |
In response to Garthor
|
|
Thus the "usr or src, depending on what your doing" comment.
|
In response to Foomer
|
|
Bleh, I didn't see the comment.
|
del(usr) // or src, depending on what your doing.