Thread: Account naming
View Single Post
  #19  
Old 02-01-2011, 10:59 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by MrOmega View Post
I've always used findPlayer( account).communityname and findPlayerByCommunityName( cname).account for when I've been wanting to do that. Also, since not every player has a community name set I usually do
PHP Code:
temp.pl findPlayeraccount);
temp.pName = !( temp.pl.communityname)? temp.pl.accounttemp.pl.communityname 
Just to avoided the annoyance, but as stated in that thread, offline accounts, well, there's no support. I worked around this awhile ago by making a DBNPC and putting account in an array, then whenever the player logged on, if their account was in their, then some function would run. I agree with the RC issues, usually communitynames are easier to remember than accounts.
I'm wondering if you even read the thread I linked to...

Quote:
Originally Posted by cbk1994 View Post
The reason these commands are needed is not for findPlayer, but for when accounts are offline.
__________________
Reply With Quote