|
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
8 c- \- w. ^" o
4 r9 x/ u6 M3 J$ k- t1 k/ j; o if( IsValidObj( pLeader ) )3 h2 U& B1 N9 U, l8 T! g
{
8 {9 L! T* R5 k9 C/ a if( uMember > 0 )
/ ^7 \! m- }" ^* ]' H) [3 q {
: N0 W3 t) u& {& J0 n9 L% R D4 m- e4 X% k3 p/ }1 o
- y/ h. j- `1 p- ]" D# q! t
% k" R V! ]7 e
替换为
1 U# a7 F! W/ G. d( K8 l if (uMember == 0)
" w. }# ~5 U* k {
6 D: a; F* l0 S% j //没找到名字,将szMemberName当id使用
* z: h4 @2 R; J0 m/ R4 h u_long uId = (u_long)atoi(szMemberName);+ \3 Q& f3 v4 W4 F7 [! v
if (uId > 0)$ L' ] |2 B! T
{" ~. A2 R# P+ o0 G; R$ ~
PlayerData* pData = CPlayerDataCenter::GetInstance()->GetPlayerData(uId);: [7 G7 a& i$ y
if (pData)
1 d& |1 ~9 U) c) g. ?2 E {/ Q& e9 T4 [7 T3 z+ a
uMember = uId;; y: F/ D" b' \
strcpy(szMemberName,pData->szPlayer);
$ N& O7 f4 ~; f( H7 h$ P, S% o }
8 _# P+ |0 e J7 D, l" E }
) B* }8 A8 F; z1 t d ( `- P5 m" V+ k( @* e
}
5 A! J+ Q& G9 {$ U //////////////////////////////////////////////////////////////////////////, q8 X, ?/ q( Q) j8 Y
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
8 C0 |' O9 p7 V9 C6 i
) H z0 |- d6 K1 `3 S1 a5 C if( IsValidObj( pLeader ) )
0 x2 z1 U# ?/ O; g8 F0 ]6 \ {: J$ t1 b8 ~8 ?5 T
if( uMember > 0 )( j5 K; C. |# z# I# J N6 w
{
5 u- V/ u0 l8 B0 Q( L J if (pLeader->m_idPlayer == uMember)
, ^5 r: ]% Y( h' e {& v2 J$ v7 Q# G1 N; D$ V5 {2 l
return;" U9 L, y/ G, l2 t) V' ~. l
}
! _ }1 I, t/ o% f7 ?$ a* D* L# e1 Z) e
|
|