Re: BrenBot help. [message #438287 is a reply to message #438259] |
Mon, 25 October 2010 04:43 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma:
|
General (5 Stars) |
|
|
Why are you adding up the number of GDI and Nod players instead of just getting the player list (which you do a few lines later) and checking how many items are in it?
EDIT: And, for reference, you shouldn't ever be accessing ServerStatus, PlayerData or modules directly, they are NOT part of the plugin interface and any plugins using them may break in future versions of BRenBot. You should use plugin::getPlayerList to get the player list and plugin::pagePlayer to page a player. All of the functionality you have used should be available through the plugin interface, if it is not you should request that it is added so you can create future-proof plugins.
[Updated on: Mon, 25 October 2010 04:45] Report message to a moderator
|
|
|