|
|
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
( ?& y' `& N3 h q8 A5 ~" V" `7 ?6 F/ b& l0 [7 y
if( IsValidObj( pLeader ) )0 k5 e( }4 F1 A; S
{. C0 @8 I- ?- R( K
if( uMember > 0 )
5 t2 i9 B! ]8 @# S# m1 P {
+ T3 t& E# Q! I# v% S
$ {# ?0 w! o1 q e' {) ]1 ^, x$ Z3 o6 j' y; o
9 x/ i5 n( l$ |+ C( ~. i3 U
替换为
& c0 x+ I; M9 t1 g4 o if (uMember == 0)
8 J+ l$ m2 G. q. n {
& P* n8 P, B& t/ [% d( M/ c w //没找到名字,将szMemberName当id使用, o8 s3 i0 X' q; J& Z( C
u_long uId = (u_long)atoi(szMemberName);
. l, s' t" w& o6 Q- L7 O if (uId > 0)
- k1 Y: T/ g' `0 ? {" |7 s" t9 }0 j- M
PlayerData* pData = CPlayerDataCenter::GetInstance()->GetPlayerData(uId);% N* k8 `2 d$ H$ p9 U2 V& P
if (pData)$ q$ \2 N5 V9 C# V
{
8 h0 H+ l' _: S. j* g uMember = uId;
1 `6 z) A P2 p0 S strcpy(szMemberName,pData->szPlayer);: w/ s1 t1 U6 a
}8 V$ f6 t& c5 @1 T' s: V
}) Q: a+ |+ Q& j2 [) e: |1 n( j
7 E& A, r, L1 l1 y$ a5 P/ g
}6 s/ n4 c/ c1 i7 j1 w+ D
//////////////////////////////////////////////////////////////////////////
& i* O* R+ M) p" R9 @1 O5 ]: e8 @ E CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid ); 0 L5 f( Y* c6 }9 E( e* f! T
" U5 {4 f% [6 U# ` if( IsValidObj( pLeader ) )2 X# O) {- G. ~) a, _! Z" ^
{& T3 k& I6 \. ~; a
if( uMember > 0 )( K: _2 X. b# x3 Z9 `: r
{
9 l, U! E/ J# U" ?& O! b if (pLeader->m_idPlayer == uMember)
3 ?. t- l( i2 D8 G7 k {
# P" U% I8 k R, d$ J return;
& B* L) |* j1 }. [0 f }
, C) ^9 q6 D+ d% @
# N* |) H1 D: G+ e/ X |
|