GetPlayerCount: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
int getPlayerCount () | int getPlayerCount () | ||
==Required Arguments== | |||
''This function has no arguments.'' | |||
==Example== | ==Example== | ||
playercount = '''getPlayerCount''' (); | playercount = '''getPlayerCount''' (); | ||
serverChat ( "There are currently ", playercount, " players playing in the server" ); | serverChat ( "There are currently ", playercount, " players playing in the server" ); |
Revision as of 19:58, 25 March 2006
Description
This function returns the number of players currently connected to the server.
Syntax
int getPlayerCount ()
Required Arguments
This function has no arguments.
Example
playercount = getPlayerCount (); serverChat ( "There are currently ", playercount, " players playing in the server" );