Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » BrenBot help.
Re: BrenBot help. [message #438287 is a reply to message #438259] Mon, 25 October 2010 04:43 Go to previous message
danpaul88 is currently offline  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? Rocked Over


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.


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Mon, 25 October 2010 04:45]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Good Huds
Next Topic: Visual Studio 2010 SSGM202+Scripts344 Projects
Goto Forum:
  


Current Time: Fri Jan 10 08:13:26 MST 2025

Total time taken to generate the page: 0.01230 seconds