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:' z9 ?" O0 y/ Z) ]' |' M. C
Code: & C( j8 K5 H; O9 n$mssql = mssql_query("SELECT * FROM [ACCOUNT_DBF].dbo.[ACCOUNT_TBL] WHERE isuse='J'"); ! R1 E8 H$ T" {& K$ q/ s/ E Qecho 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: # ^; k% O4 |$ N( QCode:' G. H) T2 X- n0 L
$mssql = mssql_query("SELECT * FROM [CHARACTER_01_DBF].dbo.[CHARACTER_TBL] WHERE MultiServer='1'");7 e/ i5 V* C. Y* l+ j8 A
echo mssql_num_rows($mssql); " X0 K8 r9 C% b4 R( h! I% y + [& [1 _% s5 J' J: S) t" {