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
storing / filtering massive items
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #27
RE: storing / filtering massive items
if (<file.open scripts/items/sphere_item_provisions_armor_color.scp>)
for line 1 9197 // <file.filelines scripts/items/sphere_item_provisions_armor_color.scp> //<file.readline 0>
if (strmatch([itemdef *rose*,<file.readline <local.line>>))
local.x += 1
local.obj<dlocal.x>=<strsub 10 <eval <eval strlen(<file.readline <local.line>>)> +-11> <file.readline <local.line>>
endif
endfor
endif
file.close
if (<local.x>)
for x 1 <local.x>
serv.log <local.obj<dlocal.x>>
endfor
endif

i got no errors but no logs either, it freezes a bit because of the ~9000 lines read but i got no serv.log Confused
i tried to understand the script but couldnt figure the " local.obj<dlocal.x>=<strsub 10 <eval <eval strlen(<file.readline <local.line>>)> +-11> <file.readline <local.line>>" line
i suppose it should be "local.obj<dlocal.x>=<strsub 10 <eval <eval strlen(<file.readline <local.line>>)> +-1> <file.readline <local.line>>"

ok i got it: local.obj<dlocal.x>=<strsub 9 <eval <eval strlen(<file.readline <local.line>>)> +-10> <file.readline <local.line>>>
(This post was last modified: 07-12-2014 09:37 AM by kn4tseb.)
07-12-2014 09:07 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: storing / filtering massive items - kn4tseb - 07-12-2014 09:07 AM

Forum Jump:


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