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:$ p& B. m3 N! H' A
Code: 9 [5 {( ^1 q/ a$mssql = mssql_query("SELECT * FROM [ACCOUNT_DBF].dbo.[ACCOUNT_TBL] WHERE isuse='J'");5 F8 K6 `$ V3 P
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:$ Q; q8 h7 u; g4 E' R2 Y' S
Code:9 {1 X* Z# h9 _0 I6 g) D" Q1 r6 b
$mssql = mssql_query("SELECT * FROM [CHARACTER_01_DBF].dbo.[CHARACTER_TBL] WHERE MultiServer='1'"); 3 \0 J* ?* W1 {& i( x9 h7 Techo mssql_num_rows($mssql); 2 {3 F1 ~1 }! m1 K9 `2 A+ h" d/ d: }