|
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
! Y7 A% U9 c. S" V6 ~0 u4 _$ i: K1 v X5 c. I
if( IsValidObj( pLeader ) )/ s8 [9 k' R' O# |& T. Z7 S
{
. E1 ?; ^" M9 `/ z/ B. Y$ e( z if( uMember > 0 )
" V2 u: Y1 K2 m F' c8 L& O {9 E% l! r- Q V3 M) F5 f6 p" P# W
, V. Y- V, }4 R3 {4 |( }- j- c. h9 c7 Z, {4 U- L
~2 ^9 J ]* M0 B) H+ x: _替换为8 r( ?+ z! r$ C4 n# D) n
if (uMember == 0)
6 z; i8 i8 ^& ] {
, c) D h: r3 ]0 g2 L/ C0 y% Q& D //没找到名字,将szMemberName当id使用
8 v. u3 \/ e5 N, m/ P8 w+ M u_long uId = (u_long)atoi(szMemberName);
2 y7 F* [5 h( L- q if (uId > 0)
0 N" B" q* s% j. a; p# B {
7 b& P$ \1 g6 X. v PlayerData* pData = CPlayerDataCenter::GetInstance()->GetPlayerData(uId);
/ ^( p7 d5 r4 G; @2 C: u if (pData)5 z; q- ?# A4 v# m% Z
{* } e1 ?' x9 d+ `
uMember = uId;9 V- ?8 {0 ?9 v- E8 W$ R
strcpy(szMemberName,pData->szPlayer);
% P1 g5 S0 R8 f* u% B! J G }
- M7 ~+ N- W$ @5 B% G }
7 S2 U5 P) q' t3 V+ Y# U 3 d& }* `5 h2 }6 n U
}$ Q J9 l, o3 @
//////////////////////////////////////////////////////////////////////////
2 M+ \7 I9 ]5 m& b3 q. R A CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
* P% b: U9 Y w3 \6 J/ v. q3 ]5 r: V' A0 g
if( IsValidObj( pLeader ) )+ I' `: r; F3 R% a! Z$ }
{
. p" _2 m$ z9 A0 g5 m if( uMember > 0 )3 Q+ a% }7 Z" K! ~, f; L+ b
{
5 n& X5 [( _% w7 ?3 i' `$ F& B if (pLeader->m_idPlayer == uMember)
6 H5 y$ c5 m1 Y. ?! `: f- t/ _ {
9 O k( `9 _! N- x$ ~ return;
3 h$ M# n' n; P+ b5 Q }# a+ F8 W5 T( M: e; v# w) {
4 H' Y& o- G; w4 r9 E) C! Q
|
|