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
Cant get status.html to work
Author Message
Lazar
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: May 2016
Reputation: 0



Post: #7
RE: Cant get status.html to work
okay so I made this now, used the add dialog XuN made with SQLlite as an example of how to do something like this. how can I get this output into something useful for my website?

Code:
[DEFNAME online_players]
Online_players_DB_File = scripts/custom/online_players.db
Online_players_Table = Online_Players

[function f_online_players_rebuild]
f_online_players_clear
f_online_players_setup

[function f_online_players_setup]
if !(<ldb.connected>)
  ldb.connect "<def.Online_players_DB_File>"
endif

if (<ldb.connected>)
  ldb.execute CREATE TABLE '<def.Online_players_Table>' ('name' TEXT,'guild' TEXT,'fame' TEXT,'karma' TEXT,'kills' TEXT)
  local.hour=<serv.rticks>
  ldb.EXECUTE BEGIN
    for N 0 <eval <serv.clients>-1>
      ref1=<serv.client.<dlocal.n>.uid>    
      if (<ref1>)    
        ldb.QUERY INSERT INTO '<def.Online_players_Table>' ('name','guild','fame','karma','kills') VALUES ("<ref1.name>","<ref1.guildabbrev>","<ref1.fame>","<ref1.karma>","<ref1.kills>")
      endif
    endfor
  ldb.EXECUTE COMMIT
  serv.log Output done in <eval <serv.rticks>-<local.hour>> seconds.
  ldb.close
endif


[function f_online_players_clear]
if !(<ldb.connected>)
  ldb.connect "<def.Online_players_DB_File>"
endif

if (<ldb.connected>)
  ldb.EXECUTE DROP TABLE IF EXISTS '<def.Online_players_Table>'
  ldb.close
endif

http://hereticuo.com - Custom Sphere 056D Shard
[Image: 728x90_banner.gif]
(This post was last modified: 09-15-2016 12:38 PM by Lazar.)
09-15-2016 12:36 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Cant get status.html to work - Lazar - 09-13-2016, 03:04 PM
RE: Cant get status.html to work - Lazar - 09-14-2016, 07:03 AM
RE: Cant get status.html to work - Ben - 09-14-2016, 07:20 AM
RE: Cant get status.html to work - Lazar - 09-14-2016, 08:22 AM
RE: Cant get status.html to work - Lazar - 09-15-2016 12:36 PM
RE: Cant get status.html to work - Lazar - 09-16-2016, 01:13 AM
RE: Cant get status.html to work - Coruja - 09-16-2016, 04:13 AM
RE: Cant get status.html to work - Lazar - 09-16-2016, 12:35 PM

Forum Jump:


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