The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find by name
Author Message
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #9
RE: Find by name
I had a thought....

It would involve recording player names as they are created (and deleting the record of them as they are deleted) but...

Code:
[FUNCTION f_onchar_create]
if <LIST.player_names.COUNT>
    if <LIST.player_names.FINDELEM <src.name>>
        src.sysmessage The name you have chosen is not available
        src.sysmessage Please chose a different name
        src.dialog d_name_change
    else
        LIST.player_names.ADD <src.name>
    endif
else
    LIST.player_names.ADD <src.name>
endif

[FUNCTION f_onchar_delete]
LIST.player_names.<LIST.player_names.FINDELEM <src.name>>.REMOVE

This is COMPLETELY untested, and obviously on a pre-existing server you would have to write and run a function to gather all player names and add them into the list.
I'm not even saying this method would be effective or efficient, I just started playing with lists properly and wondered if this might be viable.


Made it anyway: http://forum.spherecommunity.net/sshare....wnload=223

[Image: 2nis46r.jpg]
(This post was last modified: 03-15-2013 05:59 AM by Mordaunt.)
03-14-2013 05:59 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Find by name - Dullais - 03-13-2013, 10:55 PM
RE: Find by name - Shaklaban - 03-13-2013, 11:18 PM
RE: Find by name - Dullais - 03-13-2013, 11:20 PM
RE: Find by name - admin phoenix - 03-13-2013, 11:50 PM
RE: Find by name - darksun84 - 03-13-2013, 11:59 PM
RE: Find by name - Dullais - 03-14-2013, 12:10 AM
RE: Find by name - darksun84 - 03-14-2013, 12:15 AM
RE: Find by name - Staff_Stanic - 03-14-2013, 05:40 AM
RE: Find by name - Mordaunt - 03-14-2013 05:59 AM
RE: Find by name - Dullais - 03-14-2013, 07:03 AM
RE: Find by name - RanXerox - 03-14-2013, 12:10 PM

Forum Jump:


User(s) browsing this thread: 6 Guest(s)