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: #26
RE: storing / filtering massive items
(07-12-2014 07:55 AM)Skul Wrote:  you put <brackets> around the filename, does not require any.

example:
Code:
if (<file.open some_file.txt>) //opens some_file.txt
PHP Code:
if (<file.open scripts/items/sphere_item_provisions_armor_color.scp>)
  for 
line 1 <file.readline end>
    if (
strmatch([itemdef *,<file.readline <local.line>>))
      
local.+= 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 

19:06:ERROR:(sphere_system_1.scp,112)Can't resolve <file.open scripts/items/sphere_item_provisions_armor_color.scp>
19:06:ERROR:(sphere_system_1.scp,112)Undefined symbol ''
19:06:ERROR:(sphere_system_1.scp,120)Undefined keyword 'file.close'

EDIT: OK OF_FileCommands was disabled.
(This post was last modified: 07-12-2014 08:49 AM by kn4tseb.)
07-12-2014 08:03 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 08:03 AM

Forum Jump:


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