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-nmm6 (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-nmm6 (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-nmm6 (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
List assistance
Author Message
Mordaunt
Super Moderator
****

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



Post: #1
List assistance
Not used these before and seems I am being retarded with it.
Looking for a better explanation on how to use these than is given in the revisions or than I can find examples of.

I understand these and can use them fine.
Code:
list.<src.account.name>_message.add <args>  
list.<src.account.name>_message.clear

I do not understand how to make these work and could REALLY use some user friendly examples.
Code:
list.<src.account.name>_message.index.remove
list.<src.account.name>_message.index.insert
list.<src.account.name>_message.findelem  // wtf?

[Image: 2nis46r.jpg]
03-08-2013 03:07 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Wap
Journeyman
*

Posts: 138
Likes Given: 6
Likes Received: 7 in 6 posts
Joined: Mar 2012
Reputation: 3

UORPG.net

Post: #2
RE: List assistance
Code:
local.num=<list.<src.account.name>_message.findelem "abc">
if (<local.num> != -1)
    list.<src.account.name>_message.<dlocal.num>.remove
endif

Insert I didn't used, but from the explanation, it should re-write list element number [index] or doing something like this.
Code:
local.num=<list.<src.account.name>_message.findelem "abc">
if (<local.num> != -1)
    list.<src.account.name>_message.<dlocal.num>.insert "cab"
endif
?
(This post was last modified: 03-08-2013 03:16 AM by Wap.)
03-08-2013 03:15 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

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



Post: #3
RE: List assistance
Ah, thanks WAP...

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


Forum Jump:


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