|
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid );
5 y- t! s0 x3 c9 v& t% P% k$ A) C0 m7 m+ z6 w6 B8 o0 ?
if( IsValidObj( pLeader ) )' L+ E$ i) ^5 M; k7 C$ ^! b& @
{
/ q; p5 Z3 i3 f- d) H8 _ if( uMember > 0 )9 h$ M2 r7 V v R& ~, j
{- L) o: ]- F6 a9 x5 M& O
# C7 S: m& ]+ y% q, A* _. U3 D3 _, g) u, e7 W
% b5 b2 _ p) O% R替换为
$ c7 Y2 @4 n# }6 U# P if (uMember == 0)2 L8 s1 k% T5 A7 p+ G
{4 B; J: |6 w3 T+ J# E& l8 o6 h0 Q
//没找到名字,将szMemberName当id使用, A% L ~) w7 w7 b
u_long uId = (u_long)atoi(szMemberName);- b6 C2 j0 S O& S& z
if (uId > 0)
- ^3 Y1 a/ e2 Z2 ]: n. t1 c# x {
6 C3 }4 `( ~" y( x3 k5 |5 \ PlayerData* pData = CPlayerDataCenter::GetInstance()->GetPlayerData(uId);7 Z+ i1 c% T8 W* q! `- ?
if (pData)
( v/ \+ H, m4 X. A) @+ J# B2 T {
t' E; w7 ~: _, {7 ~ uMember = uId;' U b8 z7 Z) _5 M9 B% g/ ]
strcpy(szMemberName,pData->szPlayer);- |6 A/ P) Q* q5 L: r V4 N
}
' A1 E% R# \6 J5 @! P9 Y' U }& {0 H! y/ A/ E# L" |/ T% a1 c
4 D4 p" O$ n9 m+ ` }
/ Y/ F2 Q) P' K* @+ ~( V //////////////////////////////////////////////////////////////////////////) M. h$ v2 r! I+ B( j" `
CUser* pLeader = g_UserMng.GetUserByPlayerID( uLeaderid ); - K# T7 {/ _6 B! @' ^
# f/ l$ Q J b$ d0 L4 V if( IsValidObj( pLeader ) )" j$ z3 \, Z# u; Y+ B( z
{
1 P0 ]; R3 H0 p4 B2 m if( uMember > 0 ), n, E: P2 x' y' Q; D5 @
{4 [* V# l8 D8 s/ Y! Z5 d8 {
if (pLeader->m_idPlayer == uMember)
+ e# L& i5 O" e8 ^& ?( P {
/ }9 i) h% k; G u+ w return;4 Z, r: _% D% c' ^. @. |
}5 L: j. k" c( @/ y) }; Q* X4 n
, X9 v2 B& a! M) [5 I' o |
|