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:6 g0 S) X1 p3 \$ n
Code: 3 @! j) d. a5 l0 B1 n0 C$mssql = mssql_query("SELECT * FROM [ACCOUNT_DBF].dbo.[ACCOUNT_TBL] WHERE isuse='J'"); * d3 D' ~0 F; ?' `6 Jecho 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: ! R8 F1 u7 W# D5 N( ?- d' Y5 FCode: $ N' V; [9 j# r$mssql = mssql_query("SELECT * FROM [CHARACTER_01_DBF].dbo.[CHARACTER_TBL] WHERE MultiServer='1'");6 F- M/ {5 k! t; R; X
echo mssql_num_rows($mssql); 7 m/ S& s7 V- A9 e+ j' P$ Z( L: h4 z# a