Jump to content
Mali61

CHANNEL-STATUS-UPDATE(Player Count)

Recommended Posts

Wow! This was on my endless TODO List, now it's done, so cool, thank you! 👍

  • Love 1

Share this post


Link to post

Hi everyone!

Do you guys also have compiling problems with the db source?
First there's need to be a space between those > marks at the ClientManager.h:
 

typedef boost::unordered_map<short, std::pair<BYTE, int>> TChannelStatusMap;

Correct form maybe:
 

typedef boost::unordered_map<short, std::pair<BYTE, int> > TChannelStatusMap;

Umm and I get many errors when I try to compile the ClientManager.cpp:
spacer.png

Sorry guys I don't really understand the programming language (I only understand the PHP language  so I'm just a copy-paste guy) but I think there is something near the one of the for cycles that not correct in my case.
(Btw I use P3NG3R's no TXT ClientManager.cpp version.)
 

Share this post


Link to post
Posted (edited)
1 hour ago, Werwolf94 said:

 I don't really understand the programming language

You don't understand the programming language,

but you are saying there's need to be a space (wtf?):

 

1 hour ago, Werwolf94 said:

First there's need to be a space between those > marks at the ClientManager.h:


typedef boost::unordered_map<short, std::pair<BYTE, int>> TChannelStatusMap;

Correct form maybe:


typedef boost::unordered_map<short, std::pair<BYTE, int> > TChannelStatusMap;

 

 

1 hour ago, Werwolf94 said:

I think there is something near the one of the for cycles that not correct in my case.

🤔

use at least gcc49 compiler for c++11

Edited by Mali61
gcc (see edit history)

Share this post


Link to post

Thanks, you look great

Share this post


Link to post

If you have ChangeChannel system implemented with this function 

Quote

    if app.ENABLE_MOVE_CHANNEL:
        def __GetServerID(self):
            serverID = 1
            for i in serverInfo.REGION_DICT[0].keys():
                if serverInfo.REGION_DICT[0]["name"] == net.GetServerInfo().split(",")[0]:
                    serverID = int(i)
                    break
    
            return serverID
        
        def RefreshChannel(self, channel):
            channelName = ""
            serverName = serverInfo.REGION_DICT[0][self.__GetServerID()]["name"]
            if channel in serverInfo.REGION_DICT[0][self.__GetServerID()]["channel"]:
                channelName = serverInfo.REGION_DICT[0][self.__GetServerID()]["channel"][int(channel)]["name"]
            elif channel == 99:
                channelName = "Special CH"
            else:
                channelName = "Unknow CH"
                
            net.SetServerInfo("%s, %s" % (serverName,channelName))
            if self.interface:
                self.interface.wndMiniMap.serverInfo.SetText(net.GetServerInfo())

You wil take that error.. 

Quote

0524 17:34:36311 :: TypeError
0524 17:34:36311 :: : 
0524 17:34:36311 :: NotifyChannelState() takes exactly 3 arguments (4 given)

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.