Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int CServer::GetClientInfo(int ClientID, CClientInfo *pInfo)
- {
- char aBuf[128];
- str_format(aBuf, sizeof(aBuf), "client_id (%d) is not valid", ClientID);
- dbg_assert(ClientID >= 0 && ClientID < MAX_CLIENTS, aBuf);
- dbg_assert(pInfo != 0, "info can not be null");
- if(m_aClients[ClientID].m_State == CClient::STATE_INGAME)
- {
- pInfo->m_pName = m_aClients[ClientID].m_aName;
- pInfo->m_Latency = m_aClients[ClientID].m_Latency;
- pInfo->m_CustClt = m_aClients[ClientID].m_CustClt;
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement