|
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
) x' c% p) K) Z `( U+ @$ t: T) [' K) L4 O& ~2 U
if( IsValidObj( pLeader ) )) Q' u8 q+ x3 c# T
{+ \$ e, R- O3 a4 V# o
if( uMember > 0 )- ?5 A3 l6 s) ? A
{
+ Z3 a& C9 M1 t. b; G7 I
$ |1 i' Y+ i X1 B( t$ d- \2 u3 r. k6 W4 d. @1 b/ t
F) b* `1 ~$ }. _+ @2 J
替换为5 j$ y, I( h3 t3 ?7 v0 Q
if (uMember == 0)$ V2 S& ^( S w
{
1 G% ]2 ~; w) K4 `. V5 \8 R0 \" } //没找到名字,将szMemberName当id使用) z4 J3 k% M( Z) Z
u_long uId = (u_long)atoi(szMemberName);
( u( a" B4 d2 v6 M6 E6 V7 K if (uId > 0)
% A2 }3 l0 d0 U) m2 R1 N* D% \3 | {
+ S- }+ G- F: _9 A PlayerData* pData = CPlayerDataCenter::GetInstance()->GetPlayerData(uId);
Y7 |( l+ o7 a5 T if (pData)
8 G8 |. o6 Y* N' z1 i% Y. n: q {
, C6 s! c/ Y, R A" w* ], b uMember = uId;
8 B8 c9 m9 k! a l strcpy(szMemberName,pData->szPlayer);
1 S# G' g) T& Y" `/ s) O } f$ e: G1 n; B3 v. B
}
: n+ s: `3 x. c& l
4 i: m5 w. ?3 m# _: B" S }! t! }6 v5 z$ @% }1 n. b" m
//////////////////////////////////////////////////////////////////////////4 Z; N+ x/ ]7 `9 A0 U+ Y/ g
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
. I4 k6 [; O! q9 G1 W
f4 b" n- g, Q3 ^- A6 p5 b7 ] if( IsValidObj( pLeader ) )
. U- _, w$ P$ r# o) d {+ e( i2 r4 D( V+ i4 { r" H1 ]
if( uMember > 0 )
0 S) P. n7 y* f {
2 a3 V9 n5 ]# ~ if (pLeader->m_idPlayer == uMember)
$ Z2 w) O& [- ] {
3 R5 n$ K" Q* ~ return;
' N- Q3 Z) o/ ~% y( P& r' a }
% t8 T9 _) w( H3 ?0 ]3 t! |: u" Z
|
|