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
Dullais
Journeyman
*

Posts: 65
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #10
RE: Find by name
(03-14-2013 05:59 AM)Mordaunt Wrote:  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.

Looks interesting, it could and should work (i think) mby a little bit of tweaking and it's good to go.
But on second thought, i will make mysql database because i'am going to make serious connections with my webpage and list of all players will be there one way or another, so i think i will make this one with mysql later, when web page and server will be ready Smile
Anyway, Thanks for advise guys ! Smile
03-14-2013 07:03 AM
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: 1 Guest(s)