|
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid ); 0 B o- ]; M/ }) @/ X% o
& e& T% m5 |/ {$ S& x if( IsValidObj( pLeader ) ): L, n! O m$ i
{' r& |1 r, C- s
if( uMember > 0 )
% r; S+ c3 }6 ^% I4 o/ O& U5 q1 }5 j {
2 @3 g0 w! w* {) B" H" t# B7 {: C) E7 |
/ M1 K- ?* b6 u: \+ A/ e: E/ M( b
替换为
: _* w2 d6 \1 U, G5 m/ [+ s2 t if (uMember == 0)- b4 k0 {- S: p6 b
{ w) e0 p, V4 J2 H
//没找到名字,将szMemberName当id使用$ v. C1 p' y% |& |
u_long uId = (u_long)atoi(szMemberName);) O/ D4 y# Y% N {( [$ {) [0 b
if (uId > 0)
2 K) C0 {* N- i8 a9 b {
0 c, _# G; { C& T# _" @ PlayerData* pData = CPlayerDataCenter::GetInstance()->GetPlayerData(uId);
8 E! B t: p) B9 |) E if (pData)/ ^8 F: k4 {/ `: T4 ]
{2 r6 m2 Y( s4 {# h* X
uMember = uId;
+ c: t, b, u) ^$ o6 V$ n% c) | strcpy(szMemberName,pData->szPlayer);, {; I- V: O- _, i2 f
}
# f* ?4 @! x# U b; i- c }
; I% K l6 G" i0 R4 `+ Z6 v1 x* W
a* ^7 W& ^# ^. f: ` }# I; _. }7 A$ B$ w8 m$ ~% ~
//////////////////////////////////////////////////////////////////////////
% ]' o: F- l& r- O) ]) r0 F7 ?' w CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid ); - f, S7 u1 [( a8 t a% _& q
" a: N$ K0 c3 I) c if( IsValidObj( pLeader ) )
4 g0 y# q/ m2 x# S3 Z& A A {
# j+ g/ R8 `2 z, @9 [# h if( uMember > 0 )- J0 j% V. T1 b3 r
{
3 i$ i# Q) f& u$ R& Q- m( _+ p- i if (pLeader->m_idPlayer == uMember)
, X6 x/ {1 Y3 I5 `5 K {
8 k3 Z b2 |/ X! z5 A return;5 _3 K: l% S% W& ]' ]/ O
}
( `; t; J* ?9 i, j# Z4 \' `5 A, ^6 J7 F( R* h6 A1 k! h3 D
|
|