|
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
0 \% z% x( A0 v7 s7 V
3 L7 Z. m0 z' ~) q* m if( IsValidObj( pLeader ) )+ A& P, m, g% y( }$ h
{8 } B- O' I( s5 ~, a
if( uMember > 0 )% b+ Z9 W0 g) n1 v; B, y* k
{
" M$ V$ F/ I$ o# o: G
/ b b! K+ A1 f9 j' `/ d+ v( e5 U5 b. R; F' T& B# }
/ h$ q! k# A& x6 W, }2 a g+ U替换为' `) x0 e7 J3 K! h
if (uMember == 0)/ x9 `+ }/ g2 a0 Z9 }% D& q
{, n$ S, @* A. a2 X% F9 F) `0 V1 T
//没找到名字,将szMemberName当id使用
+ h- p# Q) \: Y# ^+ _" E& L u_long uId = (u_long)atoi(szMemberName);
3 }5 U% x* {3 }$ v) ^4 q if (uId > 0)
1 x; O7 ^) H8 }3 v' O8 q( f {
" J3 r( D7 @+ S, p PlayerData* pData = CPlayerDataCenter::GetInstance()->GetPlayerData(uId);
5 @$ h/ b3 B7 z$ r" Q( r if (pData)+ v) p1 ^6 L- Q% r" `
{3 [5 w( U* r& w/ E' d+ C
uMember = uId;
. d# I2 E7 m% H& T3 S2 q strcpy(szMemberName,pData->szPlayer);2 v' F5 Q' R5 v: K
}
6 n, J$ Q' p2 V V$ G7 y3 p }- X4 ~! r6 y) l9 j& u9 G
; W: [1 Z$ x9 `4 u# a }5 S. a1 E4 g ]# b/ x2 B8 D% E
//////////////////////////////////////////////////////////////////////////
& ~# F3 T! [; h: R* @% h CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
. I @$ G9 B/ T2 R/ @# [& I$ S6 x9 D# i1 g
if( IsValidObj( pLeader ) )
) i5 s" {5 v5 ^- ]4 @' W {/ N, m) k" J' U! h* y! c1 K% ?
if( uMember > 0 )8 w- |& Q, P9 {: t1 P; X
{8 I+ z# }4 O+ g# ^5 q' M! W
if (pLeader->m_idPlayer == uMember)% Y1 ?( f& V" v0 N
{7 i& |& `# E3 x' _
return;- O8 T, h& n' w" F5 w P
}( n! }$ A" O( P8 U6 I8 X
# _+ `$ H# T) b* n% U
|
|