View Single Post
Re: Problem with AMX script
Old
  (#2)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: Problem with AMX script - 25-02-2004

There is a bug if you use AMX and any bot. After some connects and disconnects AMX fails to initialize the players data structures! Therefore AMX reports wrong player numbers which confuses any AMX plugins which depend on them (PTB, WC3...).
The only way to get arount this problem is to do the playercount on your own. This is quite easy all you need is do add two log events: "entered game" and "disconnected". For an example have a look at my joebot_control AMX plugin.
I hadn't time yet to port the plugin back to realbot but it's not that hard to do...
  
Reply With Quote