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
A Question on File-Options
Author Message
Mordaunt
Super Moderator
****

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



Post: #4
RE: A Question on File-Options
Ok, question:

IS this a script you are creating to behave in this manner or is it a script you are editing to remove some ingame item that you no onger wish avaiable?

If it is the first my suggestion is scrap it the way you are looking at it, and use lists attached to the cabinet, removing an item from a list causes all remaining items in the list to shuffle to remove any gaps created.
Lists must be unique though as they are globally avaiable, however it if you attach it to the UID of the cabinet you will not have a problem.

Code:
LIST.xxx to show elements in list. Also, can be used like LIST.xxx=value to clear list and add a value
LIST.xxx.ADD to add new element to list, can be number or string
LIST.xxx.CLEAR to clear list
LIST.xxx.index to read/write value on element in list
LIST.xxx.COUNT to get count of elements in list
LIST.xxx.index.REMOVE to remove element at specified index in list
LIST.xxx.index.INSERT to insert element at specified index in list
LIST.xxx.FINDELEM search_value returns index of first found element in list. Search starting from begin
LIST.xxx.index.FINDELEM search_value returns index of first found element in list. Search starting from index
SERV.PRINTLISTS to print all lists and their elements
SERV.CLEARLISTS to clear all lists. If used with mask parameter, then clear all lists, which name countains specified mask

[Image: 2nis46r.jpg]
02-12-2013 02:04 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
A Question on File-Options - Shidhun - 02-12-2013, 01:16 AM
RE: A Question on File-Options - Mordaunt - 02-12-2013, 01:34 AM
RE: A Question on File-Options - Shidhun - 02-12-2013, 01:57 AM
RE: A Question on File-Options - Mordaunt - 02-12-2013 02:04 AM
RE: A Question on File-Options - Shidhun - 02-12-2013, 08:20 PM
RE: A Question on File-Options - RanXerox - 02-15-2013, 05:00 AM
RE: A Question on File-Options - Mordaunt - 02-15-2013, 11:47 PM
RE: A Question on File-Options - darksun84 - 02-15-2013, 11:51 PM
RE: A Question on File-Options - Shidhun - 03-04-2013, 06:12 PM
RE: A Question on File-Options - Ben - 03-05-2013, 08:55 AM

Forum Jump:


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