In the past I've seen various ways of checking the current number of online players, but all that I've seen have a fatal flaw. Depending on how the server was turned off (or more specifically, if it crashes) the player count gets messed up. Here's the one I'm talking about: 0 c5 ]3 j) @5 m6 OCode:# @' p3 r/ E9 e- @7 E( y0 h1 b: D
$mssql = mssql_query("SELECT * FROM [ACCOUNT_DBF].dbo.[ACCOUNT_TBL] WHERE isuse='J'");* U; E% ^5 Z/ _$ b" m
echo mssql_num_rows($mssql);Here's a more proper code, which will automatically reset the current online count whenever the world server program is opened: ' `1 m: X$ s( N) JCode: 6 N# o0 Y3 p5 b/ J$mssql = mssql_query("SELECT * FROM [CHARACTER_01_DBF].dbo.[CHARACTER_TBL] WHERE MultiServer='1'"); [5 T4 F& b! x% t+ n
echo mssql_num_rows($mssql); ) d" W* }9 l% ]7 a* K" W( ]2 h7 d @